LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-06-2007, 04:55 PM   #16
Necronomicom
Member
 
Registered: Jun 2004
Distribution: Slackware, Solaris
Posts: 127

Rep: Reputation: 15

My system is using way too much swap and ram and I have no idea why, like right now I'm using gnome, thunar opened, a terminal, and firefox with 4 tabs and 1 download going on, the system is using all my 512mb ram and about 540mb swap, when I first installed it i didn't think i would be using a lot of swap I made a swap partition of 128mb but had to add more because the system was crashing all the damn time, a few months ago on another slackware installation i had on the same computer (2.4 kernel) I recall never having to use more than 80-90mb swap, and that only happened when i had all type of crap opened while also compiling programs, now its like if the system is having trouble refreshing its ram and swap.

I'm using kernel huge26.s, is there anything changed from 2.4 to 2.6 that makes your system use way more swap?? or if its using the swap as a dump device for the ram in case the system crash or something like that?
 
Old 03-06-2007, 06:00 PM   #17
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I run a striped down version of the stock slack kernel (built from same source as the generic-2.6.17.13 for my processor P4, deadline IO scheduler, a few other things like latency and frequency or whatever changed, and JFS support built-in) and the only time it has EVER used swap is when handling some huge images in GIMP. My RAM usage is 22 MB on starting X and very rarely reaches 100 MB. (I have 1 GB RAM installed).
 
Old 03-06-2007, 06:29 PM   #18
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
Quote:
Originally Posted by Necronomicom
My system is using way too much swap and ram and I have no idea why, like right now I'm using gnome, thunar opened, a terminal, and firefox with 4 tabs and 1 download going on, the system is using all my 512mb ram and about 540mb swap, when I first installed it i didn't think i would be using a lot of swap I made a swap partition of 128mb but had to add more because the system was crashing all the damn time...
I can't think of anything else but that you have something running in loops, some recursive script calling itself or something else leaking memory as if there were no tomorrow. Anyway, it's not right by far.

With only those given symptoms of your 'puter, I can only tell you to check which processes do you have running after boot, with ps -ef (or any options that fit you) and analyze what's taking extra processor cycles and memory with the top command. Maybe there is something that runs under your user when you login, or even worse if it runs as root upon booting
 
Old 03-07-2007, 08:46 AM   #19
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,204
Blog Entries: 3

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Quote:
Originally Posted by General Failure
Leaky and a hog? Look at the OPs specs -- he can definitely run KDE. Don't believe the Gnomes (and GTKists)

Seriously, can you measure that your machine is getting slower or is it rather a feeling? Does it swap?

Linux buffers a lot in memory, but frees buffers when needed. My box has 512 MB and hardly ever swaps, also not if running for long time. And I would not say that anything gets slower then.

Could you do some measuring and post the results?

Edit: I use KDE btw
Hi,

What about the OPs' specs? KDE is a hog. No one said he couldn't run KDE. Nobody is preaching Gnome. If it hurt then sorry. Yes, KDE and the suite can be leaky and kde does eat up memory. You need to tweak most apps and KDE is not an exemption.

BTW, I use KDE when needed. Just prefer a small footprint. Bloatware doesn't mean that it is good software!
 
Old 03-07-2007, 12:59 PM   #20
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 384

Rep: Reputation: 34
Quote:
Originally Posted by onebuck
If it hurt then sorry.
Ouch!

I have 77 processes running. Among those startkde . And kopete plus several other smaller kde apps. (Like kinfocenter, kwikdisk, kmix etc.) Plus firefox. Plus xmms. Memory used: 122 MB. No leaking. No hogging. Or where should I look?

Burn baby burn (my flame war battle cry )

PS: Did I mention I only use 122 MB right now? Slack is so ****ing cool
 
Old 03-07-2007, 08:13 PM   #21
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 924

Rep: Reputation: 94
It's true that KDE apps need a bit of memory but I don't think they leak so much (if they leak at all). I don't use KDE desktop but keep a few KDE apps open most of the time, and my mem usage doesn't go up when I leave the computer open for long time. I have 1 GB of RAM. Although the RAM usage is usually in the 200-400 MB range, sometimes swap gets used (mostly when updatedb is run).

But Necronomicom, in your case there definitely is something wrong. Either a leak or recursive script as raska pointed out. Firefox could be the source of leak: If I use a FF window for a long time it may use up to 600MB+ of RAM. Some extensions or plugins (Flash etc.) may increase the leak.
 
Old 03-08-2007, 03:29 AM   #22
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
I couldn't find any mention to this, so.. hyphae I guess you're not counting buffered memory, right?
I mean:
Code:
[06:28 ][xcietok@desktop][~]$ free -m                                                                           
             total       used       free     shared    buffers     cached
Mem:           629        402        227          0         20        215
-/+ buffers/cache:        166        463
Swap:         1176          0       1176
[06:28 ][xcietok@desktop][~]$
That displays 402 mb used, but that's because it's counting buffered/cached memory. I'm only using 166 mb (the second row).

Edit: Regarding swap, as it was explained, linux tries to avoid swapping, you can set this in 2.6 kernels with echo <number> > /proc/sys/vm/swappiness. The number must be between 0 and 100, the higher, more linux will swap, the default is 60. You can see the current value just by doing: cat /proc/sys/vm/swappiness

Last edited by gbonvehi; 03-08-2007 at 03:37 AM.
 
Old 03-08-2007, 07:40 AM   #23
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 58
Quote:
Originally Posted by Ilgar
But Necronomicom, in your case there definitely is something wrong. Either a leak or recursive script as raska pointed out. Firefox could be the source of leak: If I use a FF window for a long time it may use up to 600MB+ of RAM. Some extensions or plugins (Flash etc.) may increase the leak.
Yes, if you are using FF that could be the problem. Many Firefox extensions are sloppily written and some are even potential security risks. Unfortunately Mozilla do not enforce coding standards even for extensions they host.
 
Old 03-08-2007, 08:05 AM   #24
Necronomicom
Member
 
Registered: Jun 2004
Distribution: Slackware, Solaris
Posts: 127

Rep: Reputation: 15
im also thinking its a firefox problem when opening many tabs and closing them, its like if firefox is not refreshing its memory the proper way, and as I keep opening tabs and closing the memory keeps going up and will stay high even when I have only 1 tab opened.

I will do more tests on it later, and use a different browser for a while to see if my memory usage goes back to normal

im using firefox2.0.0.2 from dropline-gnome btw
 
Old 03-08-2007, 08:37 AM   #25
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
Quote:
Originally Posted by Necronomicom
...I will do more tests on it later, and use a different browser for a while to see if my memory usage goes back to normal...
raska humbly recommends the Opera web browser
 
Old 03-08-2007, 12:54 PM   #26
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I do not recommend Opera, because of numerous security issue that they refuse to fix ... as with many proprietary, non-open-source programs. And it doesn't handle javascript well, or plugins, or really anything. If you wanted something else, maybe konqueror (even tho I don't like it either).

I use FF and the RAM rarely gets high even with lots of stuff open. The extensions are the biggest problem for FF. They are quite buggy and they use up lots of RAM, and they leak.

Last edited by H_TeXMeX_H; 03-08-2007 at 12:56 PM.
 
Old 03-10-2007, 05:11 AM   #27
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 58
EDIT: Ignore this post, I was thinking of something else. Move along, these are not the posts you were looking for.

Last edited by Eternal_Newbie; 03-10-2007 at 07:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does free( ) immediatly free the memory? Rayven Programming 24 11-06-2006 02:24 AM
LXer: Becoming a free software developer, part II: Free software ... LXer Syndicated Linux News 0 08-19-2006 07:33 PM
LXer: Free and Open Source Software Development Education Materials (for Free!) LXer Syndicated Linux News 0 08-10-2006 02:21 AM
howto free ram memory pingvina Linux - General 3 08-07-2006 01:52 PM
refreshing memory. dr_zayus69 Linux - Hardware 1 01-12-2005 01:34 PM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration