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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-17-2016, 06:08 PM
|
#1
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
Conky has me like, why is my RAM always cached\full? So: [BLOGED]Clean RAM every 10 minutes...
Last edited by jamison20000e; 12-17-2016 at 06:11 PM.
Reason: last line
|
|
|
12-17-2016, 06:35 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,251
|
Very bad idea.
A rudimentary search should have found linuxatemyram - read it.
|
|
1 members found this post helpful.
|
12-17-2016, 07:05 PM
|
#3
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Original Poster
|
LOL! I thought the same like... it knows what it's doing but still!
|
|
|
12-17-2016, 08:55 PM
|
#4
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
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.
|
12-18-2016, 08:39 AM
|
#5
|
Member
Registered: Aug 2016
Posts: 32
Rep:
|
Does 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.)
|
|
|
12-18-2016, 10:43 AM
|
#6
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Original Poster
|
is 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.
|
|
|
12-18-2016, 11:23 AM
|
#7
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,870
|
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.
|
12-18-2016, 12:55 PM
|
#8
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
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.
|
12-18-2016, 06:10 PM
|
#9
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Original Poster
|
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.
|
|
|
12-24-2016, 02:33 AM
|
#10
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Original Poster
|
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 %16-RAM have fun!
|
|
|
All times are GMT -5. The time now is 08:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|