|
Memcached mlockall() fix: msg#00047web.cache.memcached
Hello, We had a problem with memcached -k not working. The problem seems to be that daemon(), setuid() and mlockall() are called in the wrong order. Specifically, the mlockall must be after daemon() (because it does not follow fork()) and before setuid() (because it requires root to take effect). A patch to implement this can be found at <http://wikimedia.org/~kate/memcached-mlockall-fix.diff> (sorry, it's against 1.1.10 - apologies if this was fixed in a later version). I also added a setrlimit() to increase the locked memory limit to unlimited, and some more error checking. This has only been tested on Linux, but seems to work. Thanks, Kate. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Minor libmemcache issue inside php extension: 00047, John McCaskey |
|---|---|
| Next by Date: | [announce] php: mcache extension 1.0: 00047, John McCaskey |
| Previous by Thread: | Minor libmemcache issue inside php extensioni: 00047, John McCaskey |
| Next by Thread: | Re: Memcached mlockall() fix: 00047, Brad Fitzpatrick |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |