3 messages in ru.sysoev.nginxRe: Warning about sysctl
FromSent OnAttachments
Aleksandar LazicSep 5, 2006 3:43 am 
Igor SysoevSep 5, 2006 12:26 pm 
Aleksandar LazicSep 5, 2006 12:58 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Warning about sysctlActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Sep 5, 2006 12:26:27 pm
List:ru.sysoev.nginx

On Tue, 5 Sep 2006, Aleksandar Lazic wrote:

today i have got this warning :-/

--- objs/src/os/unix/ngx_linux_init.o: In function `ngx_os_specific_init':

src/os/unix/ngx_linux_init.c:63: warning: the `sysctl' syscall has been removed from 2.6.18+ kernels, direct access to `/proc/sys' should be used instead.

make[1]: Leaving directory `nginx-0.4.0'

---

But i have:

--- uname -a

Linux home1 2.6.17-2-686 #1 SMP Fri Aug 11 20:25:51 UTC 2006 i686 GNU/Linux

It's a debian unstable ;-)

I know this issue and some sysctl's were converted to procfs in 0.3.58. However, on pre-2.6-someting kernels nginx uses sysctl() to get /proc/sys/kernel/rtsig-max and /proc/sys/kernel/rtsig-nr values in recovery process of rtsig queue overflow. I need to investigate whether repeated pread() syscall on /proc/sys/kernel/rtsig-nr file could replace sysctl().