Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dcore:important_grep_notice [2016/06/07 09:04] – created nitramdcore:important_grep_notice [2016/07/31 17:18] (current) – [GNU Grep Performance] nitram
Line 1: Line 1:
 ===== Important Grep Notice ===== ===== Important Grep Notice =====
  
 +==== Grep Overview ====
 [[https://en.wikipedia.org/wiki/Grep|Grep]] is used extensively by dCore to crawl through extensions, dependency lists and large database files to import and update SCEs. [[http://www.gnu.org/software/grep/manual/grep.html|GNU Grep]] provides faster performance than the built-in [[https://busybox.net/downloads/BusyBox.html|BusyBox]] version. The recommendation is to ensure GNU Grep is installed and utilized. [[https://en.wikipedia.org/wiki/Grep|Grep]] is used extensively by dCore to crawl through extensions, dependency lists and large database files to import and update SCEs. [[http://www.gnu.org/software/grep/manual/grep.html|GNU Grep]] provides faster performance than the built-in [[https://busybox.net/downloads/BusyBox.html|BusyBox]] version. The recommendation is to ensure GNU Grep is installed and utilized.
  
-Some SCEs include GNU Grep, though it is best to confirm. For example, xorg-* SCEs appear to include GNU Grep but the Xvesa SCE does not. Users running Xvesa graphics or no graphics may, therefore, not be utilizing the faster Grep. If the SCE that provides this faster grep is always listed in sceboot.lst then there is no need for a separate import, otherwise import the 'grep' package from the Debian or Ubuntu repositories to load at boot: +==== Grep Utilization ==== 
-<code> +To confirm that GNU Grep is imported and utilized run ''which grep'':
-sce-import -b grep +
-</code> +
- +
-To check whether GNU Grep is imported and utilized run ''which grep'':+
 <code> <code>
 tc@box:/mnt/sda1/tce$ which grep tc@box:/mnt/sda1/tce$ which grep
Line 14: Line 11:
 </code> </code>
  
-If the output is /bb/grep the slower BusyBox version is being used. If the output is /bin/grep the faster GNU Grep is //likely// being usedalthough it may symlink to /bb/grep, further confirmation is required. Run ''sudo find / -name "grep"'', the results will confirm /bin/grep is loaded and which SCE(s) it comes from, in this case //xorg-intel.sce//:+If the output is /bb/grep the slower BusyBox version is being used. If the output is /bin/grep the faster GNU Grep is likely being used although it may symlink to /bb/grep, so further confirmation is required. Run ''sudo find / -name "grep"'', the results will confirm /bin/grep is loaded and which SCE(s) it comes from, in this case //xorg-intel.sce//:
 <code> <code>
 tc@box:~$ sudo find / -name "grep" tc@box:~$ sudo find / -name "grep"
Line 41: Line 38:
 </code> </code>
  
-Last run ''echo $PATH'' to ensure /bin pathway is prioritized before /bb:+Last run ''echo $PATH'' to confirm the /bin pathway is prioritized before /bb:
 <code> <code>
 tc@box:/mnt/sda1/tce$ echo $PATH tc@box:/mnt/sda1/tce$ echo $PATH
Line 47: Line 44:
 </code> </code>
  
-To confirm whether this grep hassle is worthwhile, an 11 MB mupdf.sce (pdf reader) update check was completed as a case study. It is a moderately sized extension not imported with any advanced techniques, such as a dependency import. On slow hardware /bb/grep required 1min:27sec to complete an update check versus 0min:37sec using /bin/grep.+==== Import GNU Grep ==== 
 +Some SCEs include GNU Grep, though it is best to confirm using the steps outlined above. For example, xorg-* SCEs appear to include GNU Grep but the Xvesa SCE does not. Users running Xvesa graphics or no graphics may, therefore, not be utilizing the faster Grep. If the SCE that provides this faster Grep is always listed in sceboot.lst then there is no need for a separate import, otherwise import the 'grep' package from the Debian or Ubuntu repositories to load at boot: 
 +<code> 
 +sce-import -b grep 
 +</code> 
 + 
 +==== Grep Performance ==== 
 +To confirm whether this Grep hassle is worthwhile, an 11 MB mupdf.sce (PDF reader) update check was completed as a case study. This is a moderately sized extension not imported with advanced techniques, such as a dependency import. On slow hardware /bb/grep took 1min:27sec to complete an update check versus 0min:37sec using /bin/grep.
  
 **[[http://wiki.tinycorelinux.net/dcore:welcome|> Return to the dCore Wiki Welcome page]]** **[[http://wiki.tinycorelinux.net/dcore:welcome|> Return to the dCore Wiki Welcome page]]**
Print/export
QR Code
QR Code dcore:important_grep_notice (generated for current page)