Bug 772483

Summary: "Out of memory" on 32bit systems.
Product: [Fedora] Fedora Reporter: Jan ONDREJ <ondrejj>
Component: squidAssignee: Jiri Skala <jskala>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: aglotov, henrik, jonathansteffan, jskala
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: squid-3.2.0.15-1.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-27 00:47:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
cachemgr memory usage
none
cache.log none

Description Jan ONDREJ 2012-01-08 19:03:21 UTC
Created attachment 551439 [details]
cachemgr memory usage

Description of problem:
My squid process is dying every aprox. 2-3 hours with out-of-memory problems.

Version-Release number of selected component (if applicable):
squid-3.2.0.14-1.fc16.i686
(previous version too)

How reproducible:
every 2-3 hours

Steps to Reproduce:
My squid memory settings:
cache_mem 256 MB
cache_dir ufs /var/spool/squid/ 5500 16 256
  
Actual results:
Jan  8 10:27:14 servername t of memory [31344]
Jan  8 11:08:42 servername t of memory [7606]
Jan  8 14:07:21 servername t of memory [11425]
Jan  8 15:00:43 servername t of memory [26815]
Jan  8 15:23:44 servername t of memory [14888]
Jan  8 18:18:56 servername t of memory [14821]
Jan  8 18:33:45 servername t of memory [23481]
Jan  8 18:43:24 servername t of memory [29527]
Jan  8 19:03:42 servername t of memory [1145]
Jan  8 19:45:44 servername t of memory [10164]

Expected results:
Running squid.

Additional info:
See attached cachemgr memory usage. mem_node is growing to 2 GB limit, which is limit on 32bit systems. With Fedora 14 everything worked well, after update to Fedora 16 my squid id dying.

Comment 1 Jiri Skala 2012-01-17 15:18:21 UTC
Could you provide more info - /var/log/squid/cache.log (use debug_options), eventually backtrace.

Comment 2 Jan ONDREJ 2012-01-17 17:30:40 UTC
Created attachment 555833 [details]
cache.log

As you wish, here is cache.log. Tell me if I can do more.
debug_options ALL,1
Some possible sensitive information has been removed.

Comment 3 Henrik Nordström 2012-01-17 18:19:00 UTC
There is a pending patch upstream which most likely fixes this. (mem_node temporarily growing without bounds)

Comment 4 Jan ONDREJ 2012-01-17 18:43:12 UTC
If you can build squid with this patch, I can test it.
Btw, why there is a beta version of squid in Fedora?

Comment 5 Henrik Nordström 2012-01-17 19:40:41 UTC
The patch have not been merged into 3.2 yet, but hopefully there is a rawhide build soon in http://koji.fedoraproject.org/koji/taskinfo?taskID=3709795

The reason why there is a beta release of Squid in Fedora 16 is that the Squid 3.2 release process have taken longer than expected and 3.2 was already in rawhide when F16 branched.

Comment 6 Jan ONDREJ 2012-01-18 10:15:32 UTC
(In reply to comment #5)
> The patch have not been merged into 3.2 yet, but hopefully there is a rawhide
> build soon in http://koji.fedoraproject.org/koji/taskinfo?taskID=3709795

Looks to be better. mem_node stopped growing at aprox. 1049498 kB.
Please, can you push this version to Fedora 16 too?

Comment 7 Fedora Update System 2012-01-24 08:27:43 UTC
squid-3.2.0.14-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-17376/squid-3.2.0.14-2.fc16

Comment 8 Fedora Update System 2012-01-24 19:59:31 UTC
Package squid-3.2.0.14-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing squid-3.2.0.14-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17376/squid-3.2.0.14-2.fc16
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-02-06 08:13:11 UTC
squid-3.2.0.15-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/squid-3.2.0.15-1.fc16

Comment 10 Fedora Update System 2012-02-27 00:47:26 UTC
squid-3.2.0.15-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.