LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2016, 06:08 PM   #1
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,707
Blog Entries: 2

Rep: Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157
Conky has me like, why is my RAM always cached\full? So: [BLOGED]Clean RAM every 10 minutes...


http://www.linuxquestions.org/questi...minutes-37249/ have fun!

Edit\add: Any other ideas welcomed?

Last edited by jamison20000e; 12-17-2016 at 06:11 PM. Reason: last line
 
Old 12-17-2016, 06:35 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 16,839

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
Very bad idea.
A rudimentary search should have found linuxatemyram - read it.
 
1 members found this post helpful.
Old 12-17-2016, 07:05 PM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,707
Blog Entries: 2

Original Poster
Rep: Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157
LOL! I thought the same like... it knows what it's doing but still!
 
Old 12-17-2016, 08:55 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,213

Rep: Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613Reputation: 1613
The holy trinity of memory information

Code:
free -m
vmstat
cat /proc/meminfo
Remember this:
  • free: memory that is currently used for any purpose;
  • shared: a concept that no longer exists. It's left in the output for backward compatibility (there are scripts that parse the output from free).
  • buffers: memory that is backed by files, and that can be written out to disk if needed;
  • cache: memory that is backed by files, and that can be reclaimed at any time (the difference with buffers is that buffers must be saved to disk before they're reused, whereas cache consists of things that can be reloaded from disk);
  • used -buffers/cache: memory used by applications (and not paged out to swap).
 
1 members found this post helpful.
Old 12-18-2016, 08:39 AM   #5
d_K
Member
 
Registered: Aug 2016
Posts: 32

Rep: Reputation: Disabled
Does
Code:
no_buffers yes
exist in your conky config? I find if that line is "no", conky takes about ~15GB (yes you read that right) of ram usage (versus ~30MB normally.)
 
Old 12-18-2016, 10:43 AM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,707
Blog Entries: 2

Original Poster
Rep: Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157
Code:
no_buffers
is
Code:
no_buffers = false
here but does not have an issue...

I am however commenting out my edit to Crontab as it does slow down for example opening a large folder of thumbnails &c. I can always run the script manually. With 8 gigs of RAM think full seems like a lot but it is a fresh install and have been working on it heavily so will see where it goes?

Thanks for the links everyone.

Last edited by jamison20000e; 12-18-2016 at 06:17 PM.
 
Old 12-18-2016, 11:23 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169Reputation: 3169
Like every modern operating system, Linux will try to intelligently use all of the RAM in your machine for some purpose or another. It does this primarily to avoid the need for disk I/O.

RAM is the only thing in the hardware of your machine that is capable of "keeping up with the CPU." Anything in RAM can be retrieved in a matter of nanoseconds, whereas anything in external storage will require milliseconds.

There are various "possible uses" for the RAM resource, the lowest-priority one being "buffers." (In other words, when there's a more-pressing need for RAM, the buffers will be the first to go ...) But Linux always wants to make intelligent use of all of the RAM resource that it has at its disposal, if there is anything at all to be done with it.

Let it alone. Let it do its job for you.

If you find that any particular application is using "far more than its share" of this shared resource, commands such as ulimit can be used to impose quotas upon it, so that it is not able to obtain more than its chosen allotment of anything. (And, you should do so.)

You should also, of course, adjust any configuration-files which this application provides, to control how much of these resources it knows that it should ask for. (Every industrial-strength application ought to have such a throttle, but not all of them do.) These are "soft" limits. The limits imposed by ulimit are "hard."

If any application uses vastly too much resources, such that (especially) "swapping" occurs far too often, the throughput of your system can grind to a halt in a syndrome known as thrashing. (Which is, shall we say, "not good.") You need to prevent this by limiting both the mix of applications and the resource limits imposed upon each.

Last edited by sundialsvcs; 12-18-2016 at 11:30 AM.
 
1 members found this post helpful.
Old 12-18-2016, 12:55 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 8,940
Blog Entries: 5

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
https://www.linuxquestions.org/quest...minutes-37249/

ouch.

i sometimes run one of these commands to see how fast or slow some activity happens when it is performed the first time after boot, or later.
the differences are vast.

2 examples:
- logging into my desktop takes ~10s the first time, and ~2s subsequently. dropping the cache has it back to 10s again.
- https://bbs.archlinux.org/viewtopic....61072#p1661072 and onwards

in other words, you're deliberately making your system go uphill all the time.
 
1 members found this post helpful.
Old 12-18-2016, 06:10 PM   #9
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,707
Blog Entries: 2

Original Poster
Rep: Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157
Thumbs up

As long as I have everyones attention and we're on the topic of running head first in the wrong direction... I often sudo up a system task monitor while always having my partition set for "real-time priority" then give full priority to a process or more, that gets results!

Edit\add: it's general home* use laptop...

Last edited by jamison20000e; 12-18-2016 at 06:13 PM.
 
Old 12-24-2016, 02:33 AM   #10
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,707
Blog Entries: 2

Original Poster
Rep: Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157Reputation: 1157
This script still works grate. If I'm doing something heavy and my RAM thinks it knows what I want thus is %92 full from other #sh/ then my work gos slow until
Code:
bingo bongo baby
%16-RAM have fun!
 
  


Reply

Tags
conky, crontab, debian, ram, vi


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
all physical ram cached on redhat 5 jalal abbasi Linux - Hardware 2 05-23-2016 07:53 AM
Running out of RAM memory because IO cached - RHEL 6.4 manolain Linux - Kernel 1 11-04-2013 05:09 PM
Cached RAM clean vaclavikr Linux - Newbie 18 10-06-2011 12:44 PM
4017/4051 MB RAM in use (3593 cached). Any ideas? Illarane Linux - Server 7 05-15-2007 07:57 AM
using RAM not L2-cached Serena *BSD 0 05-28-2006 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration