Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: unlink : reclaim inodes, etc.?

by misc (Pilgrim)
on Oct 04, 2007 at 09:43 UTC ( #642611=note: print w/replies, xml ) Need Help??

in reply to unlink : reclaim inodes, etc.?

I don't know UFS, and I don't know the filesystem internals well enough to give an educated answer.

However, I experienced with all filesystems I tried a slowdown after some time.

Therefore I try to put directories with heavy read/write access into separated partitions/filesystems.

At my Linux (Gentoo) workstation there's a directory with >150000 files and around 43MB, which is updated daily. (It contains the software package information).

In order to get some more performance, I'm using a virtual filesystem kept in the memory, which is loaded and saved into a single file at the boot/shutdown process.

In your case, if performance is important, I could also think of two partitions, which are regulary copied/formatted.
Something like:
(dev/part1 mounted at /mnt/mountpoint)
mkfs /dev/part2 mount /dev/part2 /mnt/tmp cp -a /mnt/mountpoint /mnt/tmp umount /mnt/tmp mount /dev/part2 /mnt/mountpoint umount /dev/part1

That's, however, just a suggestion to start from and possibly not practicable for you, I'm really very interested how you/others solve this problem.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642611]
[Eily]: and this time you didn't get "but the OP only asked for a solution with sed, grep, awk, bash, tail and cat"
[choroba]: When I get that, I usually just reply "Good luck" and move on.
[marto]: I'm sure it's only going to be a matter of hours before someone adds that comment
[marto]: or closes the question because it's a almost the same as one someone else asked, years ago...
[marto]: snackoverflow gamification of editorial powers for the win :/
marto should register snarkoverflow
[marto]: nothing to see here people, go about your daily business :P

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2018-01-23 10:37 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (243 votes). Check out past polls.