You are not logged in.
I've been having this issue for a while, but didn't bother to track it down until now...
Every time I log into my desktop environment (xfce4, xfwm, through slim) the process monitor widget shows one full core of CPU usage for almost a minute after the desktop loads. I open it up to look at what's going on, and immediately after I update oss it is gcc rebuilding those modeles, but every other time it appears to be running a whole bunch of "sh gunzip <path to various places in the kernel tree>". Now, I update fairly regularly and generally only reboot after an update, but I checked it and this happens after every boot even if I haven't recently updated anything.
Is there a reason for this? I would think that it should cache these unzipped modules so it doesn't take up a full core for a minute every boot, but I could be wrong, since I can't find any reference to this anywhere online...
Last edited by cshake (2013-05-27 01:02:19)
Offline
Offline
I haven't done anything custom that I know of - installed fresh around 2 years ago and have kept it updated since, (through the migration from sysv to systemd, sysvinit is completely gone now and the -compat package has been removed) everything through pacman (yaourt) and a few through AUR (like dropbox and skype at one point, though skype is gone now). I have to use OSS for sound because of the chipset (alsa doesn't find the headphone jack), and that likes to compile itself after an update, but I expected that.
Where could I find what is making this happen? In the startup manager for xfce4 the only auto-started applications are network manager applet, power manager, xscreensaver daemon, and policykit. I don't save sessions between boots, so nothing extra starts from there. Nothing is started in the .xinitrc besides startxfce4. In /etc/systemd/system/multi-user.target.wants there's acpid.service, dcron.service, laptop-mode.service, ModemManager.service, NetworkManager.serice, ntpd.serivice, oss.service, remote-fs.target, sshdgenkeys.service, sshd.service.
I guess this gets moved to newbie corner, because I'm clearly missing something...
Offline
Th only thing I can think of that would recompile things on boot is dkms. Do you have this service activated? Is it in use for anything?
Offline
I don't have the dkms package installed, and `locate dkms` returns an empty set.
After some more digging, it appears to be triggered by the "soundon" command from oss. When my laptop sleeps and resumes it doesn't work, so I have to force soundoff && soundon, and the same series of processes happens. I assume figuring that out will fix this problem, so I'll have to go down that route. I didn't expect that it was from sound, because the modules don't appear to be related, but that's no longer a kernel issue.
Thanks for the ideas though.
Offline
And now I've finally traced it down to the oss utility `ossvermagic` which apparently calculates or looks at kernel module 'varmagic' identifiers, to check that the oss modules were built against the kernel that is currently booting. However, it returns an empty string after running for around 2 minutes (on my machine at least). Running the same program on the compiled modules for oss also returns an empty string.
It appears from a quick search that vermagic was for kernel versions 2.x and not used anymore for 3.x, and could be why this just churns cycles. I can stop this from happening by manually changing the soundon script to not run it and just say the test for string match is true, but if so it doesn't have any way of checking that the modules it is enabling were built for the correct kernel. I'd submit this as a bug upstream in oss, but since they haven't released a new version in 6 years, I'll just submit one on the arch bug tracker.
Offline
I'd submit this as a bug upstream in oss, but ... they haven't released a new version in 6 years
The last OSS release was on 2012-07-03: http://www.opensound.com/forum/viewtopi … =19&t=4754
Latest git commit was 2013-03-18: http://opensound.git.sourceforge.net/gi … mit;h=HEAD
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
The last OSS release was on 2012-07-03: http://www.opensound.com/forum/viewtopi … =19&t=4754
Ah, oops, thought the 2007 in the version string was a year, not a build. I'll check it out then.
Offline
cshake wrote:I'd submit this as a bug upstream in oss, but ... they haven't released a new version in 6 years
The last OSS release was on 2012-07-03: http://www.opensound.com/forum/viewtopi … =19&t=4754
Latest git commit was 2013-03-18: http://opensound.git.sourceforge.net/gi … mit;h=HEAD
So better use oss-git when using oss?
Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux
Offline