dCore Import Debian Packages to Mountable SCE extensions > dCore X86
sce-update hi cpu usage
Jason W:
The -f flag in for sce-update in addition to a "nice" option in sceconfig that applies to sce-update and sce-import does sound very nice indeed. Some may want to know exactly what is needed in a particular SCE update, so the details are not lost for those who want to know.
Look for an RC of this in the coming days based on the suggestions in this thread.
Jason W:
Nice option has been added in latest RC, will work on the -f for next cut.
Jason W:
Added an -f option and tested it with xorg-all.sce, but it only cut about 3 seconds off the time, 1:04 versus about 1:07. Most of the time with importupdatecheck is spent gathering package deps and md5sum data of the new packages, the part that runs through the md5sum files in /usr/local/sce/xorg-all to compare values is very fast, and that is the only part we can cut short on the first found mismatch. So that function probably only takes a few seconds as it is simple comparison arithmetic.
In this case, best to leave as is, but it was worth a try.
nitram:
Hi Jason. Thanks for testing and reporting, obviously my logic failed! Playing with sce-update and importupdatecheck scripts, removed rotdash, added echos. It's apparent there's lots of heavy pre-processing before the quick md5sum comparison at the end. Replaced awk with mawk, no performance difference. Did some grep, sed and awk reading (fastest -> slowest), wondering it there's a tweak here or there. Will continue to play. Wish there was a faster update check method, just a heavy process, large database files, lots of dependencies, etc. Thanks again for your effort, much appreciated.
Jason W:
Thanks jls for the idea of a nice option in sceconfig to sce-update/sce-import.
And thanks nitram for your testing different operations in sce-update and it's functions.
Here is how I see it now, with the nice option, it becomes less relevant how fast sce-update/sce-import does it's thing. With NICE=19 in sceconfig, I am able to use Firefox, Mplayer, etc with no interference in terms of cpu when an long sce-update/sce-import process is going. And I have an older machine. To me, the nice option solves the cpu demands of sce-import/sce-update and lets it run in the background with almost no noticable drain on the other apps one is using.
So no need to wait at all to run sce-update, it now should not interfere with a running session of one's favorite apps. I admit, I only ran sce-update -an when I was away, but that is no longer needed, can do it now when I want.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version