09-18-2006
I would like to pipe "top -n" to a text file, but I get an error:
top: cannot open /dev/kmem
kvm_open: Permission denied
I am a non-root user.
If I could find a way to get this type of output:
"Memory: 2048M real, 1516M free, 4099M swap free"
into a text file, I could automate my daily system healthchecks.
Any ideas would be appreciated. Thanks so much.
10 More Discussions You Might Find Interesting
1. Programming
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)
Discussion started by: Gajanad Bihani
2 Replies
2. HP-UX
Refer from title:
How can i get memory used or anything that can show memory from sar file
example on solaris:-
we can use sar with option to show memory used at time that sar crontab run.
on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
Discussion started by: ocelot
4 Replies
4. HP-UX
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)
Discussion started by: alert0919
3 Replies
5. Solaris
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)
Discussion started by: S_venkatesh
2 Replies
6. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.
df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>
But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies
8. Solaris
I am working on Oracle 2 node RAC 10.2.0.4 on Solaris 10 T2000 kit.
The box has around 32G of memory of which 24G is used by oracle user. There is 3G of free memory on the box.
Sga max is set to 5G and while checking v$pgastat i see that maximum pga memory memory allocated was 6.5G. So oracle... (29 Replies)
Discussion started by: prabumohan
29 Replies
9. Solaris
Hello Gurus,
In Office, I have unix Solaris Server. Oracle and Java is installed on Solaris Server.
Oracle when starts then oracle loads SGA, PGA memory and graps solaris server memory. In the same manner java and other applications grabs memory for them.
I want memory distribution of... (4 Replies)
Discussion started by: get_chandrakant
4 Replies
10. UNIX for Dummies Questions & Answers
Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies
shmmni(5) File Formats Manual shmmni(5)
NAME
shmmni - number of System V shared memory segment identifiers in the system
VALUES
Default
Allowed values
DESCRIPTION
Shared memory is an efficient InterProcess Communications (IPC) mechanism. One process creates a shared memory segment and attaches it to
its address space. Any processes looking to communicate with this process through the shared memory segment then attach the shared memory
segment to their corresponding address spaces as well. Once attached, a process can read from or write to the segment depending on the
permissions specified while attaching it.
This tunable effectively sets the number of unique segments creatable system wide, since each segment is assigned an identifier by the ker-
nel. The identifier is simply a reference generated by the kernel such that any user process can request a particular segment for sharing
with a simple integer, and let the kernel determine which segment this corresponds to.
Who is Expected to Change This Tunable?
Anyone.
Restrictions on Changing
Changes to this tunable take effect immediately.
Attempting to lower below the current number of identifiers in use or below the current value of will result in an error message.
Attempts to raise the value of when insufficient memory is available to the kernel to create the needed structures will result in an error
message.
When Should the Value of This Tunable Be Raised?
should be raised if users of System V shared memory are receiving the error message on calls.
What Are the Side Effects of Raising the Value?
Kernel memory usage will be slightly increased, as the data structures used to track the segments are allocated based on this tunable.
When Should the Value of This Tunable Be Lowered?
If kernel memory is at a premium, or it is known that few segments will be needed, a slight savings can be gained from decreasing this tun-
able, and thus decreasing the data structure memory usage associated with it.
What Are the Side Effects of Lowering the Value?
Kernel memory usage will be slightly reduced.
What Other Tunable Values Should Be Changed at the Same Time?
and should be considered. should be changed in the same manner as since lowering the total number of segments but raising the number
available per process only makes sense if you want a few processes taking all the segments.
is more complex and any changes to it really depend on the effect desired. Refer to the shmmax(5) manpage for more information before
changing this tunable.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
SEE ALSO
shmem(5), shmmax(5), shmseg(5).
Tunable Kernel Parameters shmmni(5)