Try to uncomment -DUSE_MALLOC in Makefile, looks like Solaris/OSX do not like too many mmap-ed pages

Zoran Vasiljevic wrote:
On 20.12.2006, at 15:33, Vlad Seryakov wrote:

In my test.tcl when hitting nsd 5000 times i get 720 req/sec with zippy, 640 req/sec with vmalloc and 520 req/sec with ptmalloc. for some reason
nedmalloc crashes when i LD_PRELOAD it on my machine.

The nice thing is this:

after the test when nsd has 30 running threads:

vlad     17932  105 20.8 738768 215756 ?       Ssl  18:46   0:47
/usr/local/ns/bin/nsd -i -


In my test:

zvpb:~/Desktop/vmalloc zoran$ gdb ./vmalloctest
(gdb) run
Starting program: /Users/zoran/Desktop/vmalloc/vmalloctest
Reading symbols for shared libraries . done
vmalloc: threads 4, loops 50000, buffer 16384:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000003
[Switching to process 1073 thread 0x20f]
0x00002b74 in cacheAlloc (cache=0xb008af78, bucket=0) at vmalloc.c:315
315         page->magic = MAGIC;
(gdb) bt
#0 0x00002b74 in cacheAlloc (cache=0xb008af78, bucket=0) at vmalloc.c:315
#1  0x00002e68 in vmalloc (size=9) at vmalloc.c:369
#2  0x00003478 in MemThread (arg=0x0) at vmalloctest.c:92
#3  0x9002b508 in _pthread_body ()
(gdb) print *cache
$1 = {
   objs = 0x0,
   pages = {0x0 <repeats 28 times>},
   stats = {
     nallocs = 1,
     nfrees = 0,
     npages = 1,
     npages_g = 0,
     nobjs = 0
   }
}
(gdb) print page
$2 = (Page *) 0xffffffff

Something troubles him. This is on Mac OSX.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


--
Vlad Seryakov
571 262-8608 office
[EMAIL PROTECTED]
http://www.crystalballinc.com/vlad/


Reply via email to