Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Memory used by a particular process Post 74651 by Perderabo on Saturday 11th of June 2005 08:41:02 AM
Old 06-11-2005
Which os? Physical or virtual memory? Even then the answer is murky. A process is a collection of objects, many of which are shared.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory used by a process

Hello all 'top' command shows the top 15 processes in terms of CPU usage. Is there any other command in UNIX ,that will show the top processes in terms of memory usage ? or is there a command, that will give me the memory usage of a particular process ,if I pass the process id as a... (3 Replies)
Discussion started by: luft
3 Replies

2. Shell Programming and Scripting

Memory in Use by a process

How do I find the amount of memory being consumed by a particular process on AIX 5L.. Thank you (0 Replies)
Discussion started by: khopdi
0 Replies

3. AIX

Process using the most memory

Hi:- Is there an easy way to find out which process is consuming the most memory on an AIX server? Thanks, (5 Replies)
Discussion started by: janet
5 Replies

4. Shell Programming and Scripting

Memory usage of a process

hi all, i want to write a script that checks the memory usage of processes and send a mail with the name of the process witch is using more then 300mb RAM. dose anybody have a sample script or an idea how i can make it ? PROCCESSES="snmpd sendmail" for myVar in $PROCCESSES do ... (7 Replies)
Discussion started by: tafil
7 Replies

5. AIX

Process consuming most memory

How can i find the processes that is consuming most memory? I tried TOPAS and SVMON and this didn't gave me the desired result. (1 Reply)
Discussion started by: shabu
1 Replies

6. UNIX for Dummies Questions & Answers

Monitor Memory of a process

Hi, I need to monitor the memory usage of a particular process continuously. As of now I am using the following command: ps -fu <user name> -o pid,comm,vsz | grep <process_name> | grep -v grep The output of this command gives me what i need except i want the output to keep getting updated... (3 Replies)
Discussion started by: archana485
3 Replies

7. Filesystems, Disks and Memory

Memory types of process

Hi, I often hear about different types of memory statistics related to a process. e.g. resident memory, virtual memory and native memory. Can anybody please explain whats exact difference between each of them? Thanks, Pradip (0 Replies)
Discussion started by: Pradip
0 Replies

8. UNIX for Dummies Questions & Answers

see the entire memory of a process

How to see the entire memory of a process in hex? (1 Reply)
Discussion started by: vistastar
1 Replies

9. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 Replies

10. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

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
MUNMAP(3P)						     POSIX Programmer's Manual							MUNMAP(3P)

PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond- ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME
munmap - unmap pages of memory SYNOPSIS
#include <sys/mman.h> int munmap(void *addr, size_t len); DESCRIPTION
The munmap() function shall remove any mappings for those entire pages containing any part of the address space of the process starting at addr and continuing for len bytes. Further references to these pages shall result in the generation of a SIGSEGV signal to the process. If there are no mappings in the specified address range, then munmap() has no effect. The implementation shall require that addr be a multiple of the page size {PAGESIZE}. If a mapping to be removed was private, any modifications made in this address range shall be discarded. Any memory locks (see mlock() and mlockall()) associated with this address range shall be removed, as if by an appropriate call to munlock(). If a mapping removed from a typed memory object causes the corresponding address range of the memory pool to be inaccessible by any process in the system except through allocatable mappings (that is, mappings of typed memory objects opened with the POSIX_TYPED_MEM_MAP_ALLOCAT- ABLE flag), then that range of the memory pool shall become deallocated and may become available to satisfy future typed memory allocation requests. A mapping removed from a typed memory object opened with the POSIX_TYPED_MEM_MAP_ALLOCATABLE flag shall not affect in any way the avail- ability of that typed memory for allocation. The behavior of this function is unspecified if the mapping was not established by a call to mmap(). RETURN VALUE
Upon successful completion, munmap() shall return 0; otherwise, it shall return -1 and set errno to indicate the error. ERRORS
The munmap() function shall fail if: EINVAL Addresses in the range [addr,addr+len) are outside the valid range for the address space of a process. EINVAL The len argument is 0. EINVAL The addr argument is not a multiple of the page size as returned by sysconf(). The following sections are informative. EXAMPLES
None. APPLICATION USAGE
The munmap() function is only supported if the Memory Mapped Files option or the Shared Memory Objects option is supported. RATIONALE
The munmap() function corresponds to SVR4, just as the mmap() function does. It is possible that an application has applied process memory locking to a region that contains shared memory. If this has occurred, the munmap() call ignores those locks and, if necessary, causes those locks to be removed. FUTURE DIRECTIONS
None. SEE ALSO
mlock(), mlockall(), mmap(), posix_typed_mem_open(), sysconf(), the Base Definitions volume of IEEE Std 1003.1-2001, <signal.h>, <sys/mman.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 MUNMAP(3P)
All times are GMT -4. The time now is 01:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy