11-16-2009
10 More Discussions You Might Find Interesting
1. Solaris
hello
I am new to the UNIX I want to know what command is used
1.To know the Memory consumed by a process at a time .
2.To know the How many CPU's in a server.
3.To know the RAM size.
4.To know the Hard Disk size. (3 Replies)
Discussion started by: maheshkoushik
3 Replies
2. UNIX for Dummies Questions & Answers
Hi
A question about numeric display there...
Is there any option in awk that would prints a number with "left filled with zero" format, and how does it work with variable length definition?
For instance IŽd like my variable to be left filled with 0s for a length of 3 in total:
4 would be... (3 Replies)
Discussion started by: Indalecio
3 Replies
3. Shell Programming and Scripting
I want to check process status at regular interval of time ...
so i ha wirtten this BUT its not working when i placed this peace of code in .sh ..
please help me out
#!/bin/sh
w = ps -ef|grep processname | wc - l
echo $w
if ; then
Banner "Proceesname Problem"
else
Banner " Running... (5 Replies)
Discussion started by: srinivasvandana
5 Replies
4. SuSE
If following is the usage of cat /proc/meminfo
MemTotal: 4051304 kB
MemFree: 28544 kB
Buffers: 216848 kB
Cached: 3398628 kB
SwapCached: 0 kB
Active: 455460 kB
Inactive: 3291612 kB
HighTotal: 0 kB
HighFree: 0 kB... (5 Replies)
Discussion started by: bryanabhay
5 Replies
5. UNIX for Dummies Questions & Answers
I am not sure where to post this so i will put it in the newbie section.
I have set up a bog standard debain 6, LAMP environment in the cloud.
The specs
1 core at 2GH
2.5gb Memory
running Jommla, with about 1.6K visitors a day.
I am using AppFirst (appfirst.com) to monitor the... (2 Replies)
Discussion started by: waseem
2 Replies
6. Web Development
Hi
Is there a way to calculate the page load time, I am trying to calculate the load time of a page locally. I found tools to do this over http or https but none that work locally.
Any ideas?
Thanks. (4 Replies)
Discussion started by: jamie_123
4 Replies
7. Shell Programming and Scripting
I'm using cygwin bash to submit scheduled tasks (kinda like cron jobs) in windows and the following script is giving me grief. I need to format the current time with leading zeros before 10AM for the hour field. In this example, I manually typed in "09:50" instead of using the `printf...`... (2 Replies)
Discussion started by: siegfried
2 Replies
8. Shell Programming and Scripting
I want to check whether a particular process has started at 10:00a.m or not.
I can check process by ps -fu but dont know how to check it with respect to time. Could anyone help me with this?
---------- Post updated at 11:14 AM ---------- Previous update was at 10:52 AM ----------
can i use... (9 Replies)
Discussion started by: kishore kumar
9 Replies
9. Solaris
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies
10. UNIX for Beginners Questions & Answers
I can't check actual memory usage in the Redhat 5.5...
The used memory is 14214 Mb of Total 15919 by Free -m command.
I sum the RSS value on PS aux command result and the value is 5428.66Mb.
Yes It's quite different actual usage memory and RSS value.
So I added Shared memory value... (5 Replies)
Discussion started by: tom8254
5 Replies
LEARN ABOUT DEBIAN
munlockall
MLOCKALL(2) BSD System Calls Manual MLOCKALL(2)
NAME
mlockall, munlockall -- lock (unlock) the address space of a process
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/mman.h>
int
mlockall(int flags);
int
munlockall(void);
DESCRIPTION
The mlockall() system call locks into memory the physical pages associated with the address space of a process until the address space is
unlocked, the process exits, or execs another program image.
The following flags affect the behavior of mlockall():
MCL_CURRENT Lock all pages currently mapped into the process's address space.
MCL_FUTURE Lock all pages mapped into the process's address space in the future, at the time the mapping is established. Note that this
may cause future mappings to fail if those mappings cause resource limits to be exceeded.
Since physical memory is a potentially scarce resource, processes are limited in how much they can lock down. A single process can lock the
minimum of a system-wide ``wired pages'' limit and the per-process RLIMIT_MEMLOCK resource limit.
The munlockall() call unlocks any locked memory regions in the process address space. Any regions mapped after an munlockall() call will not
be locked.
RETURN VALUES
A return value of 0 indicates that the call succeeded and all pages in the range have either been locked or unlocked. A return value of -1
indicates an error occurred and the locked status of all pages in the range remains unchanged. In this case, the global location errno is
set to indicate the error.
ERRORS
mlockall() will fail if:
[EINVAL] The flags argument is zero, or includes unimplemented flags.
[ENOMEM] Locking the indicated range would exceed either the system or per-process limit for locked memory.
[EAGAIN] Some or all of the memory mapped into the process's address space could not be locked when the call was made.
[EPERM] The calling process does not have the appropriate privilege to perform the requested operation.
SEE ALSO
mincore(2), mlock(2), mmap(2), munmap(2), setrlimit(2)
STANDARDS
The mlockall() and munlockall() functions are believed to conform to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The mlockall() and munlockall() functions first appeared in FreeBSD 5.1.
BUGS
The per-process resource limit is a limit on the amount of virtual memory locked, while the system-wide limit is for the number of locked
physical pages. Hence a process with two distinct locked mappings of the same physical page counts as 2 pages against the per-process limit
and as only a single page in the system limit.
BSD
June 12, 1999 BSD