04-01-2002
Memory/Swap
Thanks for the help. That is what I needed to hear. I am going to look into the bin directories and see what I find. I just might have to resort to higher help for this one.
10 More Discussions You Might Find Interesting
1. Solaris
Hi
Can any help me on setting the swap memory ? I would like to set swap memory for installing oracle 9i software.
RAM - 512 Mb
HDD - 40 Gb
OS - Sun Solaris 5.9 (6 Replies)
Discussion started by: sivaramat
6 Replies
2. Solaris
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies
3. Solaris
Hi all
Got myself in a pickle here, chasing my own tail and am confused. Im trying to work out memory / swap on my solaris 10 server, that Im using zones on.
Server A has 32Gb of raw memory, ZFS across the root /mirror drives.
# prtdiag -v | grep mem = Memory size: 32768 Megabytes
#... (1 Reply)
Discussion started by: sbk1972
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to see used swap memory
I know that for this there is command free -m
but this shows Swap: 16383 4529 11854
by top command
while load is 1.05
max CPU % 24 mysqld
why used swap shows 4529
either it is not flushed
there is other command... (2 Replies)
Discussion started by: kaushik02018
2 Replies
5. Red Hat
Hi,
I have a strange issue where the total memory on the server is showing low.
At the moment 8 GB of memory is installed and only 3 GB is showing on the shell prompt. I am using the commands free -m and vmstat to check the memory. Please help me out in identifying the issue.
With regards... (3 Replies)
Discussion started by: shabu
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
Please help explain and answer the below:
1. I need to predetermine how much swap will my JVM use if it is started with -Xms 512M and -Xmx 1024M ?
2. Can a JVM process just use the Heap and not the Swap memory ?
3. If the Total physical RAM on my server is 8 GB and current Heap... (6 Replies)
Discussion started by: mohtashims
6 Replies
7. UNIX for Dummies Questions & Answers
In Linux, Unix environments Is swap and Shared memory the same ?
In Linux, swap is mounted on /dev/shm ? I am wondering if the naming of 'shm' has anything to do with Shared memory ? (3 Replies)
Discussion started by: kraljic
3 Replies
8. HP-UX
here is the output of swapinfo command
==> swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192000 0 8184000 0% 0 - 1 /dev/vg00/swap
reserve - 8184000 -8184000
memory ... (5 Replies)
Discussion started by: mohtashims
5 Replies
9. Red Hat
Hi team,
Is there any ability to force the system to use the swap memory for a specific service? And prevent another service of using the swap memory?
Thanks (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies
10. Red Hat
Admins,
How can I configure the server so that it will utilize the swap file as little as possible? Please correct me if I'm wrong, I would say change the value of sysctl - vm.swappiness? And if, how can I keep it permenatly even after rebooting the system? since no related parameters in... (7 Replies)
Discussion started by: leo_ultra_leo
7 Replies
LEARN ABOUT DEBIAN
sg_get_mem_stats
sg_get_mem_stats(3) Library Functions Manual sg_get_mem_stats(3)
NAME
sg_get_mem_stats, sg_get_swap_stats - get VM statistics
SYNOPSIS
#include <statgrab.h>
sg_mem_stats *sg_get_mem_stats(void);
sg_swap_stats *sg_get_swap_stats(void);
DESCRIPTION
Memory statistics are accessed through the sg_get_mem_stats function. It returns a pointer to a static sg_mem_stats.
The sg_get_swap_stats returns returns swap statistics. It returns a pointer to a static sg_swap_stats.
On the FreeBSD operating system elevated privileges are required to access the swap statistics. Making the program setgid kmem should be
sufficient. Programs running as root will not have this problem.
RETURN VALUES
The VM system calls can return a pointer to either a sg_mem_stats or a sg_swap_stats.
typedef struct{
long long total;
long long free;
long long used;
long long cache;
}sg_mem_stats;
total The total amount of memory in bytes.
free The total free memory in bytes.
used The total used memory in bytes.
cache The amount of cache used in bytes.
typedef struct{
long long total;
long long used;
long long free;
}sg_swap_stats;
total The total swap space in bytes.
used The used swap in bytes.
free The free swap in bytes.
TODO
Add a function to hold open the file descriptor to the kernel memory structures. Doing this would allow the elevated privileges to be
dropped early on.
SEE ALSO
statgrab(3)
WEBSITE
http://www.i-scream.org/libstatgrab/
i-scream $Date: 2005/04/25 11:25:45 $ sg_get_mem_stats(3)