Re: cdb self-tests, was Re: GCC 3.2 errors
"D. J. Bernstein" <[email protected]> 27 Jul 2003 20:18:49 -0000
| Newsgroups | gmane.comp.djb.cdb |
|---|---|
| Message-ID | <[email protected]> |
clemens fischer writes: > since the test-case here is memory consumption, you should lower the > softlimit in rts.tests. No. Each record takes more than 10 bytes of memory, so 5000 records take more than 50000 bytes. The problem is that Linux malloc() sometimes uses mmap(), making the data-segment resource limit practically useless. One fix is to use softlimit -m instead of softlimit -d. But some systems use an astonishing amount of memory on process startup, so reasonable -m settings end up aborting the startup rather than limiting the program's use of malloc(). ---D. J. Bernstein, Associate Professor, Department of Mathematics, Statistics, and Computer Science, University of Illinois at Chicago