[btrfs] Lubuntu 11.10 uses too much swap, not releasing cache/buffers

Bug #863552 reported by Igor Tarasov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've tried installing Lubuntu 11.10 on VIA 266 motherboard with 1.2 GHz Athlon processor and 256Mb DDR memory. I've installed it on 40Gb hard drive with 1Gb swapfile and all other space as root partition in btrfs.

Entire installation process took too much time, but I thought that it's due to limited amount of memory. But when the system booted I've found that It used only 50Mb and 50Mb were in swap. It was constantly swapping, as soon as system tried to get some memory for newly starting application. And swap usage was almost the same as memory usage. That is, when 100 Mb of memory was used, swap was used for about 100Mb etc.

 Buffers took about 40Mb. Booting process took about 3 minutes.

System was almost unusable since it was slowed down so much. I've tried changing swappines from 60 to 10 but that had absolutely no effect.

So, I had to remove that system and install LTS version with LXDE and it works pretty fast.

Sorry for not providing ubuntu-bug data. I forgot to do that, but now that system is removed. But I think that this bug is too important to ignore.

P.S: I've experienced something very similar on another machine when used someone's build of cfs kernel.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu1
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 2781 F.... lxpanel
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'V8235'/'VIA 8235 with VIA1612A at 0xe000, irq 22'
   Mixer name : 'VIA Technologies VIA1612A'
   Components : 'AC97a:56494161'
   Controls : 36
   Simple ctrls : 22
CasperVersion: 1.284
DistroRelease: Ubuntu 11.10
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 ppp0 no wireless extensions.
LiveMediaBuild: Lubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110921.1)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 002: ID 13fe:3600 Kingston Technology Company Inc.
MachineType: VIA Technologies, Inc. KM266-8235
Package: linux (not installed)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=(loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/lhostname-11.10-beta2-desktop-i386.iso nomodeset noprompt quiet splash
ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-11-generic N/A
 linux-backports-modules-3.0.0-11-generic N/A
 linux-firmware 1.60
RfKill: Error: [Errno 2] No such file or directory
StagingDrivers: zram
Tags: oneiric staging
Uname: Linux 3.0.0-11-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 09/09/2003
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 6.00 PG
dmi.board.name: KM266-8235
dmi.chassis.type: 3
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr6.00PG:bd09/09/2003:svnVIATechnologies,Inc.:pnKM266-8235:pvr:rvn:rnKM266-8235:rvr:cvn:ct3:cvr:
dmi.product.name: KM266-8235
dmi.sys.vendor: VIA Technologies, Inc.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 863552

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: oneiric
Revision history for this message
Igor Tarasov (tarasov-igor) wrote : AcpiTables.txt

apport information

tags: added: apport-collected staging
description: updated
Revision history for this message
Igor Tarasov (tarasov-igor) wrote : AlsaDevices.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : AplayDevices.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : ArecordDevices.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : BootDmesg.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : Lspci.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : PciMultimedia.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : ProcModules.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : UdevDb.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : UdevLog.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : WifiSyslog.txt

apport information

Revision history for this message
Igor Tarasov (tarasov-igor) wrote : Re: Lubuntu 11.10 beta2 swaps too much

Ok, I did it from live session, since it behaves quite the same way. On boot it had 150 Mb in swap, 29 in buffers, 106 in cache.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Test with newer development kernel (3.0.0-12.19)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.0.0-12.19
Revision history for this message
Igor Tarasov (tarasov-igor) wrote : Re: Lubuntu 11.10 beta2 swaps too much

Okay, created 6Gb partition, installed it, updated kernel to 3.0.0-12.19. The bug is still there. System is unusable, Only disabling swap makes it a bit more usable. I've monitored memory/swap status (watch free -m) during entire installation process and I have noticed that buffers+cache were at circa 130 Mb, sometimes getting a bit more or less, but always returned to this value. By the end of installation process swap usage reached 330 Mb.

Also, I've tried setting drop_caches to 3 and swappiness to 10, disabling swap and then enabling it back, with no success. System still prefers keeping cache over 100 Mb, and increasing swap any time it needs more memory.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Test with newer development kernel (3.0.0-12.20)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.0.0-12.20
Revision history for this message
Igor Tarasov (tarasov-igor) wrote : Re: Lubuntu 11.10 beta2 swaps too much

If any human being would ever read this: I've tested it on very different, another machine with Intel chipset, Celeron processor (instead of Via/AMD Athlon XP) with 512 Mb, installed latest kernel and it still swaps insanely. It became a bit less aggressive, but the problem still exists, and changing swappiness to 10 still does not help much. Opening new empty tab in chromium increases swap a bit. And that's in situation when there is 5 Mb free memory, and 160Mb cached and swappiness is set to 10.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

I wonder if this is a btrfs issue? Can you say whether the problem always happens when btrfs is involved?

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Also, would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the release candidate kernel versus the daily build. Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the others). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed by the mainline kernel, please add the following tag 'kernel-fixed-upstream-KERNEL-VERSION'. For example, if kernel version 3.1-rc9 fixed and issue, the tag would be: 'kernel-fixed-upstream-v3.1-rc9'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Thanks in advance.

tags: added: needs-upstream-testing
Revision history for this message
Igor Tarasov (tarasov-igor) wrote :

This is not btrfs issue, just tested that. Live cd of Ubuntu 11.04 boots on 512 machine and runs most of time with zero swap usage. On the same machine lubuntu 11.10 and xubuntu 11.10 boot up with 100+ mb of swap used, on a system without any btrfs partition.

But weird thing is that I've upgraded Xubuntu 11.04 on that same machine to Xubuntu 11.10 and swap usage is quite normal.

Currently I can't test it on a later kernel, I'll try to do it later this week.

summary: - Lubuntu 11.10 beta2 swaps too much
+ Lubuntu 11.10 swaps too much
summary: - Lubuntu 11.10 swaps too much
+ Lubuntu 11.10 uses too much swap, not releasing cache/buffers
penalvch (penalvch)
summary: - Lubuntu 11.10 uses too much swap, not releasing cache/buffers
+ [btrfs] Lubuntu 11.10 uses too much swap, not releasing cache/buffers
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.