Re: Silly question - Anything faster than rm?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Some hint :

- use a partition dedicated for that, that you can format every time
you need to reset it.
- try other filesystem. Some filesystem are faster for delete operations.
- try to change the journaling during the delete operations. If you
use ext3, I'm thinking about something like:

# mount -o remount,noload /data
# rm -rf /data/*
# mount -o remount /data

or

# mount -o remount,data=writeback /data
# rm -rf /data/*
# mount -o remount,data=ordered /data


On 9/29/07, Jamie Lists <jamielist@xxxxxxxxx> wrote:
> Maybe this is a silly question, but i have a few million files i need
> to delete but i can't just reformat the volume.
>
> Right now the fastest thing i can think of is
>
> nice -20 rm -Rf /folder-i-want-to-delete
>
> is there a better or faster way to do this?
>
> Thanks,
> Jamie
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
Alain Spineux
aspineux gmail com
May the sources be with you
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux