This advice, wherever you got it, is especially harmful. Cache is a good thing! You want to have cache around.
Whatever your application is doing, is bound to be related to what your application is; what is it?
program is like lottery, quiz with numbers, and problem within app the same not seems to be. No update was in that period when slowing start.
Must be somewhere in linux. Don't have a clue where to start. Can I maybe somehow force app to use more gpu, not cpu, or something ike that...Not have much ideas.
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
System FreeBSD.
Issue: I see that system idle = 0% in the same time top and other commands show that all process eat 0% of cpu.
System calls 98%
CPU states: 7.9% user, 0.0% nice, 91.8% system,<==!!!
But top does not show any process which eats more than 0%
Question: how can I see... (0 Replies)
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
well i want to get the cpu usage of the current processes.the thing is that i want to list the processes with cpu usage=0 and the others(one list for cpu usage=0 and another for cpu usage>0)..i can list them,but i cant find a way to find the ps with cpu usage=0 and cpu usage>0..pls help me with... (6 Replies)
Hi Guys,
I am a newbie on the forum. This is my first post, so first of all I would like to introduce myself.
I am a SAS Analyst programmer working for an Health Insurance client. SAS is installed on a 16 CPU AIX Server with partitions running with shared processor. I have couple of... (2 Replies)
Hi,
could someone give me an example for a debian server script? I need to check a process if the process has a high cpu load (top).
If yes the whole server needs to reboot.
Thats it, nothing more. ;)
Hope someone could help me.
Regards
woisch (2 Replies)
Discussion started by: woisch
2 Replies
LEARN ABOUT REDHAT
swapoff
SWAPON(2) Linux Programmer's Manual SWAPON(2)NAME
swapon, swapoff - start/stop swapping to file/device
SYNOPSIS
#include <unistd.h>
#include <asm/page.h> /* to find PAGE_SIZE */
#include <sys/swap.h>
int swapon(const char *path, int swapflags);
int swapoff(const char *path);
DESCRIPTION
swapon sets the swap area to the file or block device specified by path. swapoff stops swapping to the file or block device specified by
path.
swapon takes a swapflags argument. If swapflags has the SWAP_FLAG_PREFER bit turned on, the new swap area will have a higher priority than
default. The priority is encoded as:
(prio << SWAP_FLAG_PRIO_SHIFT) & SWAP_FLAG_PRIO_MASK
These functions may only be used by the super-user.
PRIORITY
Each swap area has a priority, either high or low. The default priority is low. Within the low-priority areas, newer areas are even lower
priority than older areas.
All priorities set with swapflags are high-priority, higher than default. They may have any non-negative value chosen by the caller.
Higher numbers mean higher priority.
Swap pages are allocated from areas in priority order, highest priority first. For areas with different priorities, a higher-priority area
is exhausted before using a lower-priority area. If two or more areas have the same priority, and it is the highest priority available,
pages are allocated on a round-robin basis between them.
As of Linux 1.3.6, the kernel usually follows these rules, but there are exceptions.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
Many other errors can occur if path is not valid.
EPERM The user is not the super-user, or more than MAX_SWAPFILES (defined to be 8 in Linux 1.3.6) are in use.
EINVAL is returned if path exists, but is neither a regular path nor a block device.
ENOENT is returned if path does not exist.
ENOMEM is returned if there is insufficient memory to start swapping.
CONFORMING TO
These functions are Linux specific and should not be used in programs intended to be portable. The second `swapflags' argument was intro-
duced in Linux 1.3.2.
NOTES
The partition or path must be prepared with mkswap(8).
SEE ALSO mkswap(8), swapon(8), swapoff(8)Linux 1.3.6 1995-07-22 SWAPON(2)