Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2003
    Location
    UK
    Posts
    2,560

    Question memory usage in AIX

    one thats throwing us a bit...

    how do i get the amount of physical memory currently in use (b/kb/mb) on an AIX box? this figure shouldnt include swap

    we dont have svmon installed, and the current way we're doing things is with vmstat, which looks wrong to me

  2. #2
    Join Date
    Jun 2003
    Location
    Janesville, Wi
    Posts
    1,516
    "free" for bytes. "free -k" for kilobytes. "free -m" for megabytes.

    Example:

    PHP Code:
    [root@kirika ~]# free -m
                 
    total       used       free     shared    buffers     cached
    Mem
    :          3924       2399       1524          0        112       1342
    -/+ buffers/cache:        944       2979
    Swap
    :         3071        214       2856 
    The third row is "-/+ buffers/cache". 944MB of RAM is in active use. 2979MB of RAM is still available. This will be the same on your server.
    Jakiao

  3. #3
    Join Date
    Apr 2003
    Location
    UK
    Posts
    2,560
    do me a favour - which free ?

    ossdb2.mh-root-1208: free -m
    ksh: free: not found
    ossdb2.mh-root-1209: find /usr -name free
    ossdb2.mh-root-1210:
    we're definitely missing some stuff...

  4. #4
    Join Date
    Jun 2003
    Location
    Janesville, Wi
    Posts
    1,516
    Which operating system are you using?
    Jakiao

  5. #5
    Join Date
    Jun 2003
    Location
    Ukiah, California
    Posts
    394
    Quote Originally Posted by Jakiao
    Which operating system are you using?
    He is running AIX - it is in the title.

    edit: silly me, I should read too before I post.

    free is a linux specific command. vmstat should do it for you, why does it look wrong?
    Jacob Turner -- Ringnebula Systems
    Managed IT solutions for small business

  6. #6
    Join Date
    Apr 2003
    Location
    UK
    Posts
    2,560
    vmstat gives number of active pages, which we've then multiplied by the pagesize (run the command pagesize to get this) to get the size of memory. however this does not tell you if the memory is physical or on disk which isnt what we're after

    anyone who's actually read the thread? i can do this in solaris and linux (the other 2 os's we use), but we want to know if theres anything in AIX

  7. #7
    Join Date
    Jun 2003
    Location
    Janesville, Wi
    Posts
    1,516
    Sorry for the mistake. I misread "AIX" for something else.

    Mistakes happen, and I did read the thread. Sorry again.
    Jakiao

  8. #8
    Join Date
    Jun 2003
    Location
    Ukiah, California
    Posts
    394
    Why not install svmon at this point? It would take care of your problem I believe.

    AIX isn't commonly used in the hosting world for a variety of reasons. My own AIX know-how is on the hobbiest-level at best. I only have one RS/6000 machine

    Perhaps this may help?

    http://www.unet.univie.ac.at/aix/aix.../memoryuse.htm
    Jacob Turner -- Ringnebula Systems
    Managed IT solutions for small business

  9. #9
    Join Date
    Apr 2003
    Location
    UK
    Posts
    2,560
    we probably will install svmon today, but i wanted to know if anyone could tell me there was something obvious we're missing

    we use aix to run oracle on one of those ibm p690's - no webservers on there

  10. #10
    Join Date
    Jun 2003
    Location
    Ukiah, California
    Posts
    394
    Quote Originally Posted by Slidey
    we probably will install svmon today, but i wanted to know if anyone could tell me there was something obvious we're missing

    we use aix to run oracle on one of those ibm p690's - no webservers on there
    Good choice of iron
    Jacob Turner -- Ringnebula Systems
    Managed IT solutions for small business

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •