Awesome, the simple change dmesg | grep, to grep syslog saves me about 1 second in gpu-manager, and possibly 2 in total boot time (from 7 seconds to 5). If the changes are proportional for a rotational HDD this will be a major speed improvement there..
I was thinking about using the journalctl instead, but that didn't work - seems to take longer.
Find seems to be the other big time culprit:
- "find /lib/modules/$(uname -r) -name '%s*.ko' -print",
+ "find /lib/modules/$(uname -r)/updates/dkms -name '%s*.ko' -print",
Do we always know that the modules will be under updates/dkms or could they be elsewhere? With that, it's far under 500ms for me (with strace on).
Awesome, the simple change dmesg | grep, to grep syslog saves me about 1 second in gpu-manager, and possibly 2 in total boot time (from 7 seconds to 5). If the changes are proportional for a rotational HDD this will be a major speed improvement there..
I was thinking about using the journalctl instead, but that didn't work - seems to take longer.
Find seems to be the other big time culprit: $(uname -r) -name '%s*.ko' -print", $(uname -r)/updates/dkms -name '%s*.ko' -print",
- "find /lib/modules/
+ "find /lib/modules/
Do we always know that the modules will be under updates/dkms or could they be elsewhere? With that, it's far under 500ms for me (with strace on).