Bug 172593 - Swap memory not being used
Summary: Swap memory not being used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 4
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-07 18:16 UTC by ajs
Modified: 2015-01-04 22:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-16 15:22:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg after an oom kill (15.98 KB, text/plain)
2005-11-07 20:23 UTC, ajs
no flags Details
New dmesg (34.19 KB, text/plain)
2005-11-08 19:11 UTC, ajs
no flags Details
kernel 1636: dmesg (34.25 KB, text/plain)
2005-11-14 17:05 UTC, ajs
no flags Details
kernel 1636: slabtop -o -sc (1.38 KB, text/plain)
2005-11-14 17:08 UTC, ajs
no flags Details
kernel 1637: dmesg (31.90 KB, text/plain)
2005-11-14 19:05 UTC, ajs
no flags Details
kernel 1637: slabtop -o -sc (1.38 KB, text/plain)
2005-11-14 19:06 UTC, ajs
no flags Details
kernel 1640: dmesg (38.69 KB, text/plain)
2005-11-15 17:15 UTC, ajs
no flags Details
kernel 1640: dmesg (38.69 KB, text/plain)
2005-11-15 17:16 UTC, ajs
no flags Details
kernel 1640: slabtop -o -sc (1.38 KB, text/plain)
2005-11-15 17:18 UTC, ajs
no flags Details
kernel 1644: dmesg (39.01 KB, text/plain)
2005-12-02 00:31 UTC, ajs
no flags Details
kernel 1644: slabtop -o -sc (1.39 KB, text/plain)
2005-12-02 00:32 UTC, ajs
no flags Details

Description ajs 2005-11-07 18:16:18 UTC
Description of problem:

I have 2GB of swap, but every time that I check there is no swap being used. 
When swapping is required, the oom killer starts to kill processes.

Version-Release number of selected component (if applicable):
kernel-2.6.13-1.1532_FC4

How reproducible:
always


Steps to Reproduce:
1. start a process that will require swapping
2.
3.
  
Actual results:
oom killer starts

Expected results:


Additional info:
I don't know how to give more information.

Comment 1 ajs 2005-11-07 18:47:58 UTC
swapon yields:

[seward@sonylap1 ~]$ /sbin/swapon -s
Filename                                Type            Size    Used    Priority
/dev/mapper/VolGroup00-LogVol01         partition       2031608 0       -1


Comment 2 Dave Jones 2005-11-07 20:16:13 UTC
please show the output of 'dmesg' after an oom kill.


Comment 3 ajs 2005-11-07 20:23:34 UTC
Created attachment 120793 [details]
dmesg after an oom kill

Comment 4 Dave Jones 2005-11-07 20:25:29 UTC
theres no oom kill in that dmesg.


Comment 5 ajs 2005-11-07 20:29:05 UTC
How long after the oom killer messages start showing up on the console do I have
to wait?

Comment 6 Dave Jones 2005-11-07 22:40:47 UTC
they should be there instantly.

Comment 7 ajs 2005-11-08 19:11:54 UTC
Created attachment 120821 [details]
New dmesg

When I'm at runlevel 5 the oom killer messages run all night and still don't
return.  Executing prelink in runlevel 3 invokes the oom killer but usually
does not result in a responsive system.  After several tries, I was able to end
up with a responsible enough system to redirect the dmesg output to a file. 
I've attached that file.

Comment 8 Dave Jones 2005-11-10 19:58: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 9 Dave Jones 2005-11-13 00:16:12 UTC
can you paste the output of "slabtop -sc" after the oom killer has kicked in?


Comment 10 ajs 2005-11-14 17:05:30 UTC
Created attachment 121026 [details]
kernel 1636: dmesg

Here is the dmesg after the oom killer with kernel 1636

Comment 11 ajs 2005-11-14 17:08:58 UTC
Created attachment 121028 [details]
kernel 1636: slabtop -o -sc

Here is the result of slabtop -o -sc after the oom killer with kernel 1636

Comment 12 ajs 2005-11-14 17:13:40 UTC
Oops!  I just noticed that you asked about kernel 163_7_.  I'm downloading now.

Comment 13 ajs 2005-11-14 17:22:59 UTC
Oops!  I just noticed that you asked about kernel 163_7_.  I'm downloading now.

Comment 14 ajs 2005-11-14 19:05:39 UTC
Created attachment 121034 [details]
kernel 1637: dmesg

Comment 15 ajs 2005-11-14 19:06:28 UTC
Created attachment 121035 [details]
kernel 1637: slabtop -o -sc

Comment 16 Dave Jones 2005-11-14 19:24:29 UTC
there's a 1640 being built right now which will appear at
http://people.redhat.com/davej/kernels/Fedora/FC4/ in a while, which contains a
fix for a memory leak in the file leases code. This could explain why all your
memory is being consumed by slab cache.  If this solves your problem, then this
is a dupe of bug 172691

Comment 17 ajs 2005-11-15 17:15:56 UTC
Created attachment 121074 [details]
kernel 1640: dmesg

Comment 18 ajs 2005-11-15 17:16:08 UTC
Created attachment 121075 [details]
kernel 1640: dmesg

Comment 19 ajs 2005-11-15 17:18:57 UTC
Created attachment 121076 [details]
kernel 1640: slabtop -o -sc

Comment 20 ajs 2005-11-15 17:20:03 UTC
Kernel 1640 was did not fix the problem.

Comment 21 ajs 2005-11-30 17:55:41 UTC
kernel-2.6.14-1.1644_FC4 did not help things.

Comment 22 ajs 2005-11-30 18:05:12 UTC
Do you want new dmesg and slabtop output?

Comment 23 Dave Jones 2005-11-30 18:36:27 UTC
yes please.


Comment 24 ajs 2005-12-02 00:31:16 UTC
Created attachment 121724 [details]
kernel 1644: dmesg

Comment 25 ajs 2005-12-02 00:32:22 UTC
Created attachment 121725 [details]
kernel 1644: slabtop -o -sc

Comment 26 ajs 2005-12-02 00:35:23 UTC
I have been able to get the system to use some swap by opening several large
mozilla sessions, Matlab and VMware.  This seems to work OK, but prelink still
triggers the oom kller.

Comment 27 Dave Jones 2005-12-02 05:22:51 UTC
what we really need to know is whats happening in the slabcache at the time that
the kill happens. Can you run slabtop in an xterm, and trigger the prelink
cronjob manually, and watch the output. Do you see buffer_head growing to the
top of the list perhaps, and then disappearing after the kill ?


Comment 28 ajs 2005-12-02 22:19:45 UTC
size-64 gets huge right before the kill

Comment 29 ajs 2006-01-16 15:22:10 UTC
I can no longer replicate the bug with kernel version 2.6.14-1.1656_FC4.


Note You need to log in before you can comment on or make changes to this bug.