On Nov 26, 8:48 pm, "Keith Rarick" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 25, 2008 at 4:01 PM, Andreas Fuchs <[EMAIL PROTECTED]> wrote: > > total-jobs: 118 > > ... > > > asf 31198 0.0 35.9 2174260 752204 ?? Ss 11:51PM > > 0:01.42 /Users/asf/Documents/hack/Soupsie/build/Release/Soupsie.app/ > > Contents/MacOS/beanstalkd > > That's insane memory use, even on OS X. I just tested beanstalkd on OS > X 10.5 (with no updates; 32-bit) and libevent 1.4.8 stable, after > submitting about 1,500 jobs RSS is less than 600KiB.
This is the odd part: If I start submitting jobs like mad (about 9000 in a few seconds), beanstalkd grows to about 2MB. There might be something in our usage that differs from how you test, maybe? What I did to get this memory usage was to submit a job with priority 10, and in the worker that accepted the job, submit another job that does the same, delayed for 60 seconds, at priority 1024+, wait for 60 sec for the worker to do its thing again (at this point, it was at 220MB already) then do this two more times: submit that job at prio 10, wait a bit. > Someone who sees this problem: can you give more details of which > version of Mac OS and libevent you're using? Are you running 64-bit? > Is anyone willing to run beanstalkd under valgrind (either memcheck or > massif)? That would be incredibly helpful, since I'm so far unable to > reproduce it. uname -a output from the system in question: Darwin jubjub.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386 I'm running libevent 1.4.8 from macports, the portfile says: # $Id: Portfile 40321 2008-09-29 15:58:33Z [EMAIL PROTECTED] $ The system is 64-bit Leopard, beanstalkd and libevent are built as 32- bit executables: $ file beanstalkd beanstalkd: Mach-O executable i386 $ file /opt/local/lib/libevent.dylib /opt/local/lib/libevent.dylib: Mach-O dynamically linked shared library i386 I'll try and run it under valgrind tomorrow. Maybe the description of our job submission pattern and the library info an help you a bit already. Thanks & good night, Andreas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en -~----------~----~----~----~------~----~------~--~---
