Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 65964 Details for
Bug 99713
ntpd hits RLIMIT_MEMLOCK limit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to increase the memory lock limit
rlimit-memlock.patch (text/plain), 736 bytes, created by
Christoph Gysin
on 2005-08-14 13:23:28 UTC
(
hide
)
Description:
patch to increase the memory lock limit
Filename:
MIME Type:
Creator:
Christoph Gysin
Created:
2005-08-14 13:23:28 UTC
Size:
736 bytes
patch
obsolete
>--- ntp-stable-4.2.0a-20040617/ntpd/ntpd.c.0 2005-06-14 12:02:43.000000000 -0400 >+++ ntp-stable-4.2.0a-20040617/ntpd/ntpd.c 2005-06-15 12:12:13.253809589 -0400 >@@ -691,6 +691,16 @@ > "Cannot adjust stack limit for mlockall: %m"); > } > } >+ /* >+ * The default RLIMIT_MEMLOCK is very low on Linux systems. >+ * Unless we increase this limit malloc calls are likely to >+ * fail if we drop root privlege. To be useful the value >+ * has to be larger than the largest ntpd resident set size. >+ */ >+ rl.rlim_cur = rl.rlim_max = 32*1024*1024; >+ if (setrlimit(RLIMIT_MEMLOCK, &rl) == -1) { >+ msyslog(LOG_ERR, "Cannot set RLIMIT_MEMLOCK: %m"); >+ } > } > # endif /* HAVE_SETRLIMIT */ > /* >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 99713
:
65963
| 65964