Linux - NewbieThis 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.
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.
i have problem when i run this command to ssh to get free ram ,
Code:
echo 3 > /proc/sys/vm/drop_caches
this is code must give me free ram and empty ram cached, i already run this command many time on other nodes i have but with one node when i run this command, i found the ssh hang and can not do any thing , so when i open anther ssh window and type command " top " i see "bash" is take from 89 to 100 % of CPU
i'm try to use kill command like this to stop this bash but can not stop
kill -9 56565
or
killall -9 56565
OR
killall -9 bash
there is nothing need to stop this bash on top using high CPU,
It is not needed to "free" RAM this way. If an application needs RAM, the cache will be automatically dropped and the RAM will be assigned to that application. In fact, freeing RAM this way can even decrease performance.
my nodes used for hosting vpSs and when i need to see the Free -m i see it's like 100 MB only and my node have 16 GB ram , the cached memory is 8 GB . and also the problem now is how to stop/kill this bash on top using all this CPU !!!
Why do you think "my nodes used for hosting vpSs and when i need to see the Free -m i see it's like 100 MB only and my node have 16 GB ram , the cached memory is 8 GB" is a problem?
Yes problem happend inside vpSs . and it's not problem now to know this info . i'm looking to get help for my orginal post if any one can help me to fix the issue please reply
Yes problem happend inside vpSs . and it's not problem now to know this info . i'm looking to get help for my orginal post if any one can help me to fix the issue please reply
Why do you think it is a problem? Do you know about file system caching as explained on Steve Miller's blog?
EDIT: what Steve Miller doesn't make clear is that unchanged (= not dirty) file system cache pages do not need to be flushed -- the memory they use is available immediately when required for other purposes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.