LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-07-2015, 06:33 PM   #1
MattFly
Member
 
Registered: Apr 2015
Posts: 98

Rep: Reputation: Disabled
Administrate RAM


As a imperative and always mult functioning user, doing everything at the same time, for me is a necessity to utilize as most as possible of my Random Access Memory. Despite the fact that I'm using Slackware linux, which was supposed to don't drag out too much of the memory, I can't get the expected efficient and the system usually freeze. That's because I only have 4 gb of ram.

So I'd like to know some tips to let my system faster and clear. Mayb e any scripts. Don't tell me to shut down things that are not used or things initialized with the computer 'cause I've aready did that.
 
Old 06-07-2015, 06:35 PM   #2
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
i have 4GB and no problems

use ublock ?
 
Old 06-07-2015, 06:49 PM   #3
Dt-13
LQ Newbie
 
Registered: Apr 2015
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by MattFly View Post
As a imperative and always mult functioning user, doing everything at the same time, for me is a necessity to utilize as most as possible of my Random Access Memory. Despite the fact that I'm using Slackware linux, which was supposed to don't drag out too much of the memory, I can't get the expected efficient and the system usually freeze. That's because I only have 4 gb of ram.

So I'd like to know some tips to let my system faster and clear. Mayb e any scripts. Don't tell me to shut down things that are not used or things initialized with the computer 'cause I've aready did that.
vm.swappiness=10
zram + zswap
 
Old 06-07-2015, 06:55 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
When the system become unresponsive it can be because the lack of RAM makes it use swap instead, but also (and more likely) because some process consumes a lot of CPU cycles.

The "free" command will tell you if the swap is in use, then "top" or "htop" will allow you to find the offending process and possibly kill it. See the man pages for these commands.

This phenomenon can happen on any Linux distribution as it's usually due to some running application, rather than to the distribution itself.

Last edited by Didier Spaier; 06-07-2015 at 06:57 PM.
 
Old 06-07-2015, 09:00 PM   #5
MattFly
Member
 
Registered: Apr 2015
Posts: 98

Original Poster
Rep: Reputation: Disabled
I actually use 2.4 gb of swapp, and there's a script running with the function of drop caches and allocated memory if the ram usage reach 80% every hour.
 
Old 06-07-2015, 09:01 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Look into ulimit. Here's an old SlackWiki article to start you off.

http://slackwiki.com/Resource_Limits

Also, running a 32-bit distribution and not a 64-bit one helps.

Last edited by dugan; 06-07-2015 at 09:06 PM.
 
1 members found this post helpful.
Old 06-07-2015, 10:46 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by MattFly View Post
I actually use 2.4 gb of swapp, and there's a script running with the function of drop caches and allocated memory if the ram usage reach 80 every hour.
Still, as long as you don't investigate what fills your RAM (if that's actually the case) or what eats all you CPU cycles (if that's actually the case), you won't solve your problem. Solving a problem needs to know the cause of the issue and for that you need to investigate, else you are like a medical doctor who gives medicines to his patients without having made a diagnose. Would you like to be treated for hay fever if you if you have pneumonia?

Last edited by Didier Spaier; 06-08-2015 at 06:01 AM.
 
Old 06-07-2015, 11:08 PM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
What type of drive holds your swap partition(s)?

If it's a slow drive, you'll get a pause when whatever is stored there is swapped back into RAM. If you actually *are* using 2.4G of swap (versus having that much allocated), then you can get some long pauses.
 
Old 06-08-2015, 05:45 AM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
One way to see what's going on (that's included with Slackware) is GKrellM.

Open a terminal, start it with
Code:
nohup gkrellm &
You can close the terminal window and GKrellM will keep running.

You'll get a graphic "stick" that shows your CPUs, Procs, Disk, Eth0, ppp0, Memory, Swap and up time.

Grab it and move it over to the right side of the screen where you can see it.

Your CPUs should display right about 0 - 1% use when the system is just sitting there mumbling to itself (with Firefox and Thunderbird running, for example), you should have something like 512 processes, disk should be pretty much nothing, eth0 about nothing, memory and swap about nothing.

If the CPus are at more than 50%, you need to find (using the tools recommended by others above) what's doing that: what's running and why is the question. The Mem and Swap displays are a horizontal ruler type display and they should rarely being doing much of anything.

Keep in mind that a quiescent system (even with X and a couple of applications running) isn't doing much. There are a lot of processes started but they're mostly interrupt driven and just sit there waiting for something to trigger them. Things like Firefox and Thunderbird don't do much most of the time (typing this doesn't cause any bumps in the fields).

If you've got an application that is either poorly designed or is a huge memory hog (which indicates a poor design too) and that drives the CPUs to 90% or more, might be time to look carefully at that application, eh?

Hope this helps some.
 
  


Reply



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
How to administrate a lot of servers? JohnV2 Linux - Server 8 01-07-2013 01:00 AM
LXer: Administrate Databases Over the Web With phpMyAdmin LXer Syndicated Linux News 0 04-24-2011 11:20 AM
LXer: Get WebVZ On Debian Etch To Administrate OpenVZ LXer Syndicated Linux News 0 05-30-2008 02:10 PM
How to administrate one root from another and make it a dummy one placemevinod Linux - Networking 3 01-28-2007 12:27 AM
How to administrate serveral linux boxes? richikiki Slackware 3 11-25-2006 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration