Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 am working in an Oracle environment on an 8 GB system running Redhat 4.0 U3 (32-bit) with the U4 kernel. I am using 1.4 GB of hugepages and I have a ramdisk /dev/shm that is 1.2 GB in size for Oracle indirect data buffers.
When I run free, it tells me that I am using 2053960 of RAM and I have 6265372 available.
So, I have two questions.
1. Is there a bug in free? Why is shared showing up as 0 when ipcs clearly shows that I am using 1.4 GB of shared memory?
2. How do I really know how much memory I am using?
what's the output of 'cat /proc/meminfo'? Also, did you compile a custom kernel, or use a pre-built one? If prebuilt, do you know how the hi-mem is configured in it?
I won't have access to the system until Wednesday, but I am using the Redhat hugemem kernel prebuilt. No specific parameters except to mount the ramdisk and I have set hugpages=744. The interesting thing is that I have seen examples of the "free" command all over the internet, but I have never seen an example where shared is not 0.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.