LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-01-2006, 10:44 AM   #1
ewhalen
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
How do I tell how much memory I have available?


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.

total used free shared buffers cached
Mem: 8308332 8273268 35064 0 124632 6094676
-/+ buffers/cache: 2053960 6254372
Swap: 5245096 50304 5194792

I can see from ipcs -m that I am using 1.4 GB of shared memory (in hugepages).

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0xae126214 196609 oracle 600 1461714944 25
0x00000000 229378 oracle 640 4096 0
0xb1faa338 98307 oracle 640 241172480 15

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?

Any help is appreciated. Thanks.
Ed
 
Old 09-01-2006, 02:29 PM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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?

regards,
...drkstr
 
Old 09-03-2006, 02:16 PM   #3
ewhalen
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Redhat hugemem kernel

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.
 
Old 09-03-2006, 02:57 PM   #4
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
/poc/meminfo contains some good info about your memory, it will probably give you what you need.

regards,
...drkstr
 
Old 09-05-2006, 09:17 AM   #5
sysconfig
Member
 
Registered: Sep 2006
Location: (.)
Posts: 44

Rep: Reputation: 15
you could also user $ free -m

thx
 
  


Reply



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
tool to detect number of memory slots, memory module type, speed, and size stefanwolf Linux - Hardware 8 04-22-2013 09:48 AM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 03:32 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:16 PM.

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
Open Source Consulting | Domain Registration