ipcCreate: fork: (12) Cannot allocate memory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ipcCreate: fork: (12) Cannot allocate memory

erdosain9
Hi to all.
all was working fine.. but today Im having this issue


2017/09/07 11:34:49 kid1| Starting new negotiateauthenticator helpers...
2017/09/07 11:34:49 kid1| helperOpenServers: Starting 1/35
'negotiate_kerberos_auth' processes
2017/09/07 11:34:50 kid1| Starting new negotiateauthenticator helpers...
2017/09/07 11:34:50 kid1| helperOpenServers: Starting 1/35
'negotiate_kerberos_auth' processes
2017/09/07 11:34:50 kid1| ipcCreate: fork: (12) Cannot allocate memory
2017/09/07 11:34:50 kid1| WARNING: Cannot run
'/lib64/squid/negotiate_kerberos_auth' process.
2017/09/07 11:34:50 kid1| Starting new negotiateauthenticator helpers...
2017/09/07 11:34:50 kid1| helperOpenServers: Starting 1/35
'negotiate_kerberos_auth' processes
2017/09/07 11:34:50 kid1| ipcCreate: fork: (12) Cannot allocate memory
2017/09/07 11:34:50 kid1| WARNING: Cannot run
'/lib64/squid/negotiate_kerberos_auth' process.
2017/09/07 11:34:50 kid1| Starting new negotiateauthenticator helpers...
2017/09/07 11:34:50 kid1| helperOpenServers: Starting 1/35
'negotiate_kerberos_auth' processes
2017/09/07 11:34:50 kid1| ipcCreate: fork: (12) Cannot allocate memory
2017/09/07 11:34:50 kid1| WARNING: Cannot run
'/lib64/squid/negotiate_kerberos_auth' process.
2017/09/07 11:34:50 kid1| Starting new negotiateauthenticator helpers...
2017/09/07 11:34:50 kid1| helperOpenServers: Starting 1/35
'negotiate_kerberos_auth' processes
2017/09/07 11:34:50 kid1| ipcCreate: fork: (12) Cannot allocate memory
2017/09/07 11:34:50 kid1| WARNING: Cannot run
'/lib64/squid/negotiate_kerberos_auth' process.
2017/09/07 11:34:50 kid1| Starting new negotiateauthenticator helpers...
2017/09/07 11:34:50 kid1| helperOpenServers: Starting 1/35
'negotiate_kerberos_auth' processes
2017/09/07 11:34:50 kid1| ipcCreate: fork: (12) Cannot allocate memory
2017/09/07 11:34:50 kid1| WARNING: Cannot run
'/lib64/squid/negotiate_kerberos_auth' process.
2017/09/07 11:34:50 kid1| Starting new ssl_crtd helpers...
2017/09/07 11:34:50 kid1| helperOpenServers: Starting 1/32 'ssl_crtd'
processes
2017/09/07 11:34:51 kid1| Starting new ssl_crtd helpers...
2017/09/07 11:34:51 kid1| helperOpenServers: Starting 1/32 'ssl_crtd'
processes
2017/09/07 11:34:51 kid1| ipcCreate: fork: (12) Cannot allocate memory
2017/09/07 11:34:51 kid1| WARNING: Cannot run '/usr/lib64/squid/ssl_crtd'
process.


Can somebody give me a hand??
Thanks to all.



--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: ipcCreate: fork: (12) Cannot allocate memory

erdosain9
By the way,

              total        used        free      shared  buff/cache  
available
Mem:           3,7G        3,0G        122M         13M        554M      
422M
Swap:          2,0G        160M        1,8G




--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: ipcCreate: fork: (12) Cannot allocate memory

Amos Jeffries
Administrator
In reply to this post by erdosain9
On 08/09/17 02:44, erdosain9 wrote:

> Hi to all.
> all was working fine.. but today Im having this issue
>
>
> 2017/09/07 11:34:49 kid1| Starting new negotiateauthenticator helpers...
> 2017/09/07 11:34:49 kid1| helperOpenServers: Starting 1/35
> 'negotiate_kerberos_auth' processes
> 2017/09/07 11:34:50 kid1| Starting new negotiateauthenticator helpers...
> 2017/09/07 11:34:50 kid1| helperOpenServers: Starting 1/35
> 'negotiate_kerberos_auth' processes
> 2017/09/07 11:34:50 kid1| ipcCreate: fork: (12) Cannot allocate memory
> 2017/09/07 11:34:50 kid1| WARNING: Cannot run
> '/lib64/squid/negotiate_kerberos_auth' process.


How much RAM does this machine have?

What are your cache_mem and cache_dir settings?

How much RAM is Squid using when these fork's happen?

How much RAM is Squid normally using?

Does the machine have memory 'swap' enabled?

Any per-process limits on RAM consumption?


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: ipcCreate: fork: (12) Cannot allocate memory

Amos Jeffries
Administrator
In reply to this post by erdosain9
On 08/09/17 02:48, erdosain9 wrote:
> By the way,
>
>                total        used        free      shared  buff/cache
> available
> Mem:           3,7G        3,0G        122M         13M        554M
> 422M
> Swap:          2,0G        160M        1,8G
>

How much of that 3GB of RAM is Squid using?
  Your swap need to be at least twice that number.

The fork() starting each helper *doubles* the amount of memory the
kernel counts as being Squid's (once for Squid, once for helper) BUT
this extra helper memory is virtual and thus almost all placed inside
the 'swap' area.

So you need a lot of swap space for the kernel to (pretend to) use with
Squid helpers. The helper itself should use a much smaller amount of
real RAM so should be no problem there if the fork() can do its thing.

Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: ipcCreate: fork: (12) Cannot allocate memory

erdosain9
Ok, thanks

i grow the swap

[root@squid /]# free -h
              total        used        free      shared  buff/cache  
available
Mem:           3,7G        1,0G        117M         29M        2,6G      
2,4G
Swap:          6,0G        124M        5,9G


related to swappiness what would be a good value??

i have this

 cat /proc/sys/vm/swappiness
30

cat /proc/sys/vm/vfs_cache_pressure

100

Thanks!



--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users