Bug 172691

Summary: fasync_cache leaks memory slowly
Product: [Fedora] Fedora Reporter: Avi Kivity <avi>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: pfrields, wtogami
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-28 23:15:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Avi Kivity 2005-11-08 14:44:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.2 (like Gecko)

Description of problem:
328224 328222  99%    0.02K   2104      156      8416K fasync_cache 
... and growing slowly. 
it is my understanding that fasync_cache should not be larger than the number 
of open files in the system (currently ~6000) 
the system is a dual opteron (single core) serving nfs, samba, http, and 
shells. a post[1] to lkml leads me to believe it is samba related. Haven't 
tested it yet. 

Version-Release number of selected component (if applicable):

How reproducible:
Didn't try

Steps to Reproduce:
1. serve smb using samba (?)  
2. slabtop  

Actual Results:  slabtop shows a large fasync_cache 

Expected Results:  small fasync_cache 

Additional info:

running lvm atop raid-1

Comment 1 Avi Kivity 2005-11-08 14:50:27 UTC
I can confirm it is samba related. mounting a share on another machine (mount 
-t cifs) and doing a subversion checkout on that mount causes the cache to 
grow by several hundred objects per second. setting the fs.leases-enables 
sysctl to 0 stops the leak. 

Comment 2 Dave Jones 2005-11-10 18:55:29 UTC
2.6.14-1.1637_FC4 has been released as an update for FC4.
Please retest with this update, as a large amount of code has been changed in
this release, which may have fixed your problem.

Thank you.

Comment 3 Avi Kivity 2005-11-10 20:16:36 UTC
2.6.14-1.1637_FC4smp is bad. 

Comment 5 Dave Jones 2005-11-14 19:19:57 UTC
fixed in cvs, will be in builds 1640 and above.
Will get this pushed out in a day or so.
(Interim builds will appear at http://people.redhat.com/davej/kernels/Fedora/FC4/)

Comment 6 Avi Kivity 2005-11-14 22:43:50 UTC
excellent! thank you.