I need to put a program together to determine the total, available memory and total and available swap on unix machines. I have been searching for weeks and I seem to run into dead ends. Every unix platform I look at has a different way to determine memory info.
Any sugggestions or new... (4 Replies)
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)
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)
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)
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)
hi guys
the monitoring team is using a tool for monitoring linux boxes and they set an alarm for swap memory to 10%(critical) I really has no idea when swap memory usage is high....
Can someone recommend me a threshold for this? when is warning or critical and this parameters can affect... (3 Replies)
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)
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)
Hi,
In our production box i can see the Swap space using the below command
free
total used free shared buffers cached
Mem: 65963232 41041084 24922148 0 877160 35936292
-/+ buffers/cache: 4227632 61735600
Swap: 4192880 ... (6 Replies)
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 OSF1
free
FREE(9r)FREE(9r)NAME
FREE - General: Deallocates (frees) the allocated kernel virtual memory
SYNOPSIS
#include <sys/malloc.h>
FREE(
void *addr,
int type );
ARGUMENTS
Specifies the memory pointer that points to the allocated memory to be freed. You must have previously set this pointer in the call to MAL-
LOC. You also define the data type for this argument in the call to MALLOC. Specifies the purpose for which the memory is being allocated.
The memory types are defined in the file <malloc.h>. Typically, kernel modules use the constant M_DEVBUF to indicate that kernel module
memory is being allocated (or freed).
DESCRIPTION
The FREE routine deallocates (frees) the allocated kernel virtual memory, which you allocated in a previous call to MALLOC.
NOTES
A memory corruption can occur if a kernel module continues to use the memory after freeing it. The operating system provides a built-in
mechanism to debug such erroneous use of memory. You can enable this debugging feature at boot time by providing the following boot parame-
ter: kmem_debug=1. When you enable this debugging feature, the FREE routine stores the following in the last word of freed memory: The pro-
gram counter (pc) of the module that last freed the memory The checksum of the memory content
The MALLOC routine checks the checksum of the memory content before reallocating this corrupted memory. If the checksum of the memory con-
tent does not match the corrupted memory, MALLOC stores the debug information and then causes the kernel to panic. The MALLOC routine
stores the address and size of the corrupted memory and the pc of the routine that last freed it in a kmem_corrupt_data structure.
You should consider the following when using this debugging feature: This debugging feature does not detect cases where the corruption
occurs after malloc reallocates the freed memory to some other module. There is a small chance that the pc of the routine that freed the
memory (stored in the last word of freed memory) may itself become corrupted.
RETURN VALUES
None
SEE ALSO
Routines: MALLOC(9r)FREE(9r)