Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] Extensive swappiness even when RAM is unutilized

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

[SOLVED] Extensive swappiness even when RAM is unutilized

  • Quote

Post by drseergio » Mon May 18, 2009 6:36 pm

Before I ask the question I must say that I have crawled all of the forums and resources I could but there is no reasonable explanation for what is happening with my machine.

I have 2G of RAM and 2G of swap. The problem is that swap gets used even if RAM is not filled up. For example, only 700/2048Mb of RAM is used when 600+Mb/2G of SWAP gets used as well. That would be ok if the system would not hang. I can't see dmesg, top or anything else, and only the MagicKey helps. The HDD is used as hell.

I am using vanilla 2.6.30, the problem was present in 2.6.29 as well.

Nothing interesting is seen in dmesg. Perhaps this is a known a problem. Is there something I can include to diagnose the source of the problem? Anyone has any ideas of what might be wrong?
Last edited by drseergio on Mon May 25, 2009 5:48 am, edited 1 time in total.
Top
coolsnowmen
Veteran
Veteran
User avatar
Posts: 1479
Joined: Wed Jun 30, 2004 6:52 pm
Location: No.VA

  • Quote

Post by coolsnowmen » Mon May 18, 2009 6:40 pm

Hang?! What are you doing?
Using swap when 'unnecessary' will slow operations down, but not hang. If you want to remove swap from the diagnosis, than do just that. 2Gb of ram should get you through the day until you can prove whether or not swap is affecting your hanging problem.
emerge: there are no ebuilds to satisfy "moo"
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Mon May 18, 2009 6:44 pm

Right. As an experiment I'll turn off the swap to see if the problem remains. It slows down to a standstill, sometimes I can see the last moments see conky which shows load average of 16 (!). The last time I was using NetBeans when that happened.
Top
LoSeR_5150
Guru
Guru
User avatar
Posts: 455
Joined: Sun Mar 20, 2005 9:19 pm
Location: San Francisco, CA

  • Quote

Post by LoSeR_5150 » Mon May 18, 2009 9:32 pm

what does

Code: Select all

 cat /proc/sys/vm/swappiness
show?

I usually set mine at 1 if I have more than 2GB of ram... mileage may vary so try some adjustments and see what works best.

You can specify your swapiness level in you /etc/sysctl.conf

just append

Code: Select all

#Configure Swappiness
vm.swappiness = 5
to the end of your /etc/sysctl.conf

or you an just echo in variables to /proc/sys/vm/swappiness ... hope this helps.
Opteron 1356@2.4Ghz
6GB DDR2 800Mhz
128MB Quadro NVS 210S
640GB Western Digital HD
*Gentoo-x86_64-2.6.30-r1

Opteron175@2.2GHz
2GB DDR 400MHz
256MB Quadro 1400 Go
(2) 80GB Segate HDs: RAID0
*Gentoo-x86_64-2.6.30-r1
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Wed May 20, 2009 9:31 am

LoSeR_5150 wrote:what does

Code: Select all

 cat /proc/sys/vm/swappiness
show?

I usually set mine at 1 if I have more than 2GB of ram... mileage may vary so try some adjustments and see what works best.

You can specify your swapiness level in you /etc/sysctl.conf

just append

Code: Select all

#Configure Swappiness
vm.swappiness = 5
to the end of your /etc/sysctl.conf

or you an just echo in variables to /proc/sys/vm/swappiness ... hope this helps.
I used to have 0 there, at the moment it's set to default. However, I suppose even in such a case it should not bring a system to a halt.

Continuing with the experiment turning swap off did not help. The system goes wild when (!) 500Mb of 2G is used. The last thing I notice is the 15Mb/s disk access and kswap0 in the process table. This seems highly related to the fact I run NetBeans, though closing it and opening it does not help.

I'll try to set swappiness to 1 and see if that helps.
Top
MaximeG
l33t
l33t
Posts: 722
Joined: Tue Apr 15, 2008 4:49 pm
Location: Belgium

  • Quote

Post by MaximeG » Wed May 20, 2009 10:50 am

Hi,

Perhaps NetBeans is limited to xxx amount of memory by its configuration ?

I had same kind of issue with virtual machines, or graphics program in which the allocated memory I gave them was too small.

Regards,
Maxime
Future is wide open.
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Fri May 22, 2009 12:39 pm

Interesting observations - when this occurs some kind of memory corruption takes place, which is noticeable by strange fonts in applications. For example, in Firefox I get gibberish fonts. Also, restarting X helps.

Perhaps this is a more related X-related issue?
Top
jcat
Veteran
Veteran
User avatar
Posts: 1337
Joined: Fri May 26, 2006 10:47 am

  • Quote

Post by jcat » Fri May 22, 2009 1:44 pm

Couple of things.


Have you tried a memtest? Not 100% reliable, but it may throw some light on a potential issue with your RAM.

Also, have you double checked your high memory settings in the kernel?


Cheers,
jcat
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Fri May 22, 2009 7:50 pm

jcat wrote:Couple of things.


Have you tried a memtest? Not 100% reliable, but it may throw some light on a potential issue with your RAM.

Also, have you double checked your high memory settings in the kernel?


Cheers,
jcat
I'll run the memtest just to be sure.

What is it exactly about the high memory settings in the kernel I should check? Is it CONFIG_HIGHPTE? Is it CONFIG_HIGHMEM64G (I have high mem support set to 4G as recommended for machines with >=1G ram)?
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Fri May 22, 2009 9:37 pm

Sure your apps are not really using up all your RAM?

Run 'top' in another xterm and watch it. Might want to sort it by 'M'emory.

As the machine starts running out of RAM you can watch it in top... See if this is happening or not.

If you're getting corruption as you run out of ram...also make sure your disk i/o system is error free...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
drseergio
Apprentice
Apprentice
Posts: 236
Joined: Wed Sep 28, 2005 12:45 pm

  • Quote

Post by drseergio » Mon May 25, 2009 5:48 am

I think I have discovered the culprit of this behavior. The same problem has been observed on my friend's computer who is running a similar but still different configuration. The common part is the X-Server 1.6 and Intel driver 2.7. If one looks at X in the process table when that happens he'll see more than 1G of virtual memory occupied.

The reason why he did not experience these problems earlier probably lies in the fact that his machine has twice as much of RAM. On the other hand, NetBeans and UI development (which I am currently occupied with) greatly accelerate the X in its memory consumption trends.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic