12-22-2011
You should explain what your system is. Mine doesn't have that command at all.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
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)
Discussion started by: ghe1
4 Replies
2. 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
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. UNIX for Dummies Questions & Answers
Hi All,
I have just installed my first Linux server ( Ubuntu 11.10 ).
I am sure I didn't allocate /swap , and double check by 'df -h', yes really no /swap
but when I use 'free -m' , returned a "Swap" line as below.
total used free shared buffers cached
Mem: ... (3 Replies)
Discussion started by: joaming
3 Replies
6. 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
7. 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
8. 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
9. Linux
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)
Discussion started by: ratheeshjulk
6 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
explain_system_or_die
explain_system_or_die(3) Library Functions Manual explain_system_or_die(3)
NAME
explain_system_or_die - execute a shell command and report errors
SYNOPSIS
#include <libexplain/system.h>
void explain_system_or_die(const char *command);
void explain_system_success_or_die(const char *command);
int explain_system_success(const char *command);
DESCRIPTION
These functions may be used to execute commands via the system(3) function, and report the results.
explain_system_or_die
void explain_system_or_die(const char *command);
The explain_system_or_die function is used to call the system(3) system call. On failure an explanation will be printed to stderr,
obtained from explain_system(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
int status = explain_system_or_die(command);
command The command, exactly as to be passed to the system(3) system call.
Returns:
This function only returns on success, see system(3) for more information. On failure, prints an explanation and exits.
explain_system_success_or_die
void explain_system_success_or_die(const char *command);
The explain_system_success_or_die function is used to call the system(3) system call. On failure, including any exit status other than
EXIT_SUCCESS, an explanation will be printed to stderr, obtained from explain_system(3), and then the process terminates by calling
exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_system_success_or_die(command);
command The command, exactly as to be passed to the system(3) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
explain_system_success
int explain_system_success(const char *command);
The explain_system_success function is used to call the system(3) system call. On failure, including any exit status other than EXIT_SUC-
CESS, an explanation will be printed to stderr, obtained from explain_system(3). However, the priniting of an error message does not also
cause exit(2) to be called.
This function is intended to be used in a fashion similar to the following example:
int status = explain_system_success(command);
command The command, exactly as to be passed to the system(3) system call.
Returns:
the value returned by the system(3) system call. In all cases other than EXIT_SUCCESS, an error message will also have been
printed to stderr.
SEE ALSO
system(3)
execute a shell command
explain_system(3)
explain system(3) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_system_or_die(3)