Skip to: content | sidebar | login

Little things that bring problems

Posted on 2007-12-19 21:47:26 CET.

This is a short blink. I've just read quite important blog entry.

Artuu complains about bad Unix rm command behavior. While it is quite obvious, that rm has simple buffer overflow detection by reducing amount of parameters, Atruu pointed out a threat on MidCOM's performance.

MidCOM's cache module stores various data in filestystem so that it is not required to get them from DB on and on. And thisi is GOOD. However, on bigger sites you can end up with dozen thousands of small files. And that is BAD since FS performance may drop radically when scanning directory for a single file. It seems, we have to introduce directory hashing for MidCOM's cache soon.

OK, I know that exts3 can handle big number of files with htree but a simple test will show how much we can loose. With any method create some 20-30k files in a temp directory then run mc (Midnight Commander) from that path and see how long it takes to open a pane.

Back


Return to top