diff options
author | todd stecher <todd.stecher@gmail.com> | 2009-02-17 16:16:35 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-18 18:08:32 -0800 |
commit | c441f58dedc465f59060296815a0bc7f9aeb743f (patch) | |
tree | f6443ed770146ba26e9c09370c1a9bddc22252fe /source3/include | |
parent | cdcd525a05ce851dcb338dfa8c9be3009194aa96 (diff) | |
download | samba-c441f58dedc465f59060296815a0bc7f9aeb743f.tar.gz samba-c441f58dedc465f59060296815a0bc7f9aeb743f.tar.bz2 samba-c441f58dedc465f59060296815a0bc7f9aeb743f.zip |
S3: Allow SMBD processes to survive in low memory condidtions
This commit adds a configure argument which allows for setting MADV_PROTECT
in the madvise() API. With this enabled the kernel won't kill SMBD when
it's running low on memory.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/includes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index a9f813b7f8..1906830d48 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -241,6 +241,10 @@ typedef int ber_int_t; #include <aio.h> #endif +#ifdef WITH_MADVISE_PROTECTED +#include <sys/mman.h> +#endif + /* Special macros that are no-ops except when run under Valgrind on * x86. They've moved a little bit from valgrind 1.0.4 to 1.9.4 */ #if HAVE_VALGRIND_MEMCHECK_H |