> For 1.6 million files, assuming their name are all numbered > sequentially, 1, 2, 3 ... 15999999, 16000000, about 180MB will be > necessary for them. In this case, you might want to try these values. > #define AuSize_DEBLK (4 * 1024 * 1024) > #define AuSize_NHASH (16 * 1024)
Filenames are like "msg1234567.html" $ ls -U | wc 1600415 1600415 24506508 I would like to have a safety margin of 2X, because this directory will grow. > With these values, 4MB memory block will be allocated 120 times and the > pointer array (which is reallocaed and the trigger of this problem) will > be 8 * 120 = 960 bytes at most. > > Here the the value of DEBLK is the size of allocated memory in one > kmalloc() call. The maximum value which kmalloc() supports is depending > on the system. x86_64 > If you have a plan to switch to aufs2, please let me know. April 2010, when Ubuntu does their next long term support release. https://wiki.ubuntu.com/LTS ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july