#10879 NORM Opportu: busybox rm not as quick as coreutils

Zarro Boogs per Child bugtracker at laptop.org
Tue May 17 12:52:25 EDT 2011


#10879: busybox rm not as quick as coreutils
-----------------------+----------------------------------------------------
 Reporter:  dsd        |                 Owner:  dsd          
     Type:  defect     |                Status:  new          
 Priority:  normal     |             Milestone:  Opportunity  
Component:  initramfs  |               Version:  not specified
 Keywords:             |           Next_action:  never set    
 Verified:  0          |   Deployment_affected:               
Blockedby:             |              Blocking:               
-----------------------+----------------------------------------------------
 Our initramfs uses busybox-1.15.1 and occasionally has the task of purging
 old /versions trees using "rm -rf".

 Busybox's "rm -rf" is quite a bit slower than coreutils version. Tested on
 a running system, timing the deletion of a hard link tree made as follows:

 {{{
 cd /versions
 cp -l -a * delete_me
 }}}

 9 seconds for busybox vs 6 seconds for coreutils. (busybox seems to be
 even slower from the initramfs, not sure why)

 Opportunity for speedup here.

-- 
Ticket URL: <http://dev.laptop.org/ticket/10879>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list