dCore Import Debian Packages to Mountable SCE extensions > dCore X86
dCore-wheezy for x86 now posted.
Onyarian:
Excuse me, but "grep" is not part of the core?, if it is, why is interesting to import it? or, is because it's into busybox?
Jason W:
Busybox grep in the dependency gathering routine will read between 1 and 2 packages per second. GNU grep will give you about 10 or 15 dependencies a second, almost 10 times faster. I believe GNU grep caches the file it is reading in RAM so it does not need to pull it from the disk on subsequent reads. Busybox grep will be used unless grep is imported which then by default GNU grep will be called on. The md5sum functions in deb2sce and debGetSize also show the same performance increase with an imported grep, so it is quite a time difference overall.
Below is an actual comparison of the two greps, each ran twice to eliminate cache factor.
--- Code: ---root@box:/home/tc# time /bb/grep "Package: file$" /etc/sysconfig/tcedir/debian_jessie_main_i386_Packages
Package: file
real 0m 0.38s
user 0m 0.37s
sys 0m 0.00s
root@box:/home/tc# time /bb/grep "Package: file$" /etc/sysconfig/tcedir/debian_jessie_main_i386_Packages
Package: file
real 0m 0.38s
user 0m 0.37s
sys 0m 0.00s
root@box:/home/tc# time grep "Package: file$" /etc/sysconfig/tcedir/debian_jessie_main_i386_Packages
Package: file
real 0m 0.01s
user 0m 0.00s
sys 0m 0.00s
root@box:/home/tc# time grep "Package: file$" /etc/sysconfig/tcedir/debian_jessie_main_i386_Packages
Package: file
real 0m 0.01s
user 0m 0.00s
sys 0m 0.00s
--- End code ---
Onyarian:
Good, so clearly explained.
Thanks
Jason W:
Actually, using the time command in deb2sce on the debGetDeps function, I clocked 22 dependencies per second so the performance increase is substantial indeed.
Jason W:
This thread will now close in favor of the Release and Release candidate sections above. Please direct any posts there.
Navigation
[0] Message Index
[*] Previous page
Go to full version