Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 a powerful server with 24GB of ram and an Intel Xenon quad core processor that I'm using to run a bunch of virtual machines for an office on using VirtualBox.
Lately there has been a problem though. If I run free this is what I get:
a little before 2:45 PM I had my RAM eaten. Going back through my brain I remember that at that time I ran the command VBoxManage clonehd XXXXX.vdi to clone one of my virtual hard drives.
I tried this again to make sure that the VBoxManage clonehd command was really the thing that was eating my RAM and it was. My question is - how do I reclaim the RAM. When the process that ate all the ram finished (I think it's the VBoxSVC process) it just leaves me with all my RAM used. How do I free up the RAM without restarting the server?
Your RAM is fine, and it isn't being "eaten". If you look at the "Mem" line, you have 23,492,972 Kb Cached. This means that it was used at some point in time, and rather than writing zeros or ones back to it, what was put there is just kept there in case it is needed again. If something else needs to use the RAM, the oldest cached info will be overwritten by the new info.
So I figured out something more about this. I went through the VBox.log file corresponding to the time I had the issue and I found many many lines similar to:
07:05:10.490 AssertLogRel /home/vbox/vbox-3.2.10/src/VBox/VMM/PGMSharedPage.cpp(155) VBOXSTRICTRC pgmR3SharedModuleRegRendezvous(VM*, VMCPU*, void*): RT_SUCCESS_NP(rc)
07:05:10.490 VERR_PGM_PHYS_INVALID_PAGE_ID (-1637) - Trying to free a page with an invalid Page ID.
I've never encountered a page fault before. What does this mean?
That's actually closer to a protection fault than a (normal) page fault. Happens. You might be surprised how many page faults you've actually encountered - even with all that RAM.
(Re-)read what forrestt said. Note that the kbcommit number has hardly changed - that means your "real" usage has hardly increased at all. Have a read of this.
I think this "fault" might be coming from the pagefusion thing in virtualbox that is supposed to de-duplicate ram usage across multiple virtual machines of the same type. Why this is causing this VERR_PGM_PHYS_INVALID_PAGE_ID...???
I turned it off and the problem seemed to go away so far...
No idea, never even looked at it as I don't run Windoze guests. The Linux kernel offers its own memory de-dup these days if apps are smart enough to advise it that storage (ranges) is/are candidates. I did see a note on vbox-devl they weren't going in that direction (late last year).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.