Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to find the size of Process Address space. Post 3704 by S.Vishwanath on Tuesday 10th of July 2001 07:38:53 AM
Old 07-10-2001
Question How to find the size of Process Address space.

Hello,

Please help me to know, How to find out the how much amount of process addres space is required/is used for/by a process.

Tnx & Regards
Vishwa.
 

10 More Discussions You Might Find Interesting

1. Programming

How to find out the stack size occupied for a process?

Hi, In Linux how to find out what will be the stack size allocated for a process? Actually i have to fork n number of processess, and will call exec. I will be execing an executable which is already multithreaded and each thread size is defined. My doubt is how to know if the size of the... (2 Replies)
Discussion started by: rvan
2 Replies

2. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

3. Red Hat

can not reboot : PCI: Unable to handle 64-bit address space for

Hello, every one, I tried to install redhat linux enterprise server version 4 (ES4) on the my system with the following configuration Pentium core 2 duo 2.66 E 6750 Intel DG33FB motherboard 160Gb Segate hard disk (SATA) 1024 mb (1GB) DDR2 TRAN RAM Lg DVD/Cd WR BUT AM GETTING... (0 Replies)
Discussion started by: moinkhan31
0 Replies

4. Shell Programming and Scripting

find process size script

Hello i am working on a project here is part of script that i need a help in get process SpectroSERVER current size if it exceed 3850 MB then #pkill -TERM ArchMgr and wait to succfull shutdown message from the log file to proceed to the next step #tail -f $SPECROOT/SS/DDM/ARCHMGR.OUT... (7 Replies)
Discussion started by: mogabr
7 Replies

5. Programming

Find Virtual address space size for process

Hi, I am looking to work on unix systems which include (hp-ux, ibm aix, solaris and linux). I want to get the total virtual address space of a process, the used virtual memory i am able to get without any problem. I have tried using getrlimit and getrlimit64, but that gives only ... (4 Replies)
Discussion started by: uiqbal
4 Replies

6. UNIX for Advanced & Expert Users

Can kernel process access user address space ?

Can kernel process access user address space ? (2 Replies)
Discussion started by: subhotech
2 Replies

7. Shell Programming and Scripting

find with file size and show the size

Hi All... is the below command be modified in sucha way that i can get the file size along with the name and path of the file the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also.. find / -name "*.*" -size +100000k ... (3 Replies)
Discussion started by: rpraharaj84
3 Replies

8. Programming

How to get address space size that a process is allowed to use

Hi All, From C++, I just want to find the address space size that a process is allowed to use. For ex, in 32 bit OS the allowed address space is 4GB and in 64 bit OS I guess this is 16GB or more. I jsut want to find it in my C++ project. Is there any API calls that gives me such information.... (2 Replies)
Discussion started by: Sendil Kumar
2 Replies

9. Programming

PC RAM and process address space

Suppose I have 3 gb of ram and 250 gb hard disk in my pc. Now I wrote a simple C program having only one statement malloc() to allocate 4 gb of memory as 32 bit os can address 4gb address space then will the malloc succeed? If yes then how it will get extra 1 gb of memory? Does the process gets... (3 Replies)
Discussion started by: rupeshkp728
3 Replies

10. Solaris

Process holding /tmp space, need to know the process details

Hi , In a server /tmp has almost reached 75% and i can see the File system utilization is 48Mb only , so i believe some process is using the /tmp space. I would like to know which process is using /tmp space. # df -h /tmp Filesystem size used avail capacity Mounted on swap ... (9 Replies)
Discussion started by: chidori
9 Replies
mlockall(3)						     Library Functions Manual						       mlockall(3)

NAME
mlockall, munlockall - Locks into memory, or unlocks, all of a specified process's pages (P1003.1b) LIBRARY
Realtime Library (librt.so, librt.a) SYNOPSIS
#include <sys/mman.h> int mlockall ( int flags); int munlockall (void); PARAMETERS
flags Determines whether the pages to be locked are those currently mapped by the process's address space, those that will be mapped in the future, or both. The flags argument is constructed as the OR of one or more of the constants, MCL_CURRENT or MCL_FUTURE, as defined in the <mman.h> header file. DESCRIPTION
The mlockall function causes all of the pages mapped by the process's address space to be memory resident until unlocked by a call to the munlockall function, until the process exits, or until the process calls exec. MCL_CURRENT locks all of the pages currently mapped into the process's address space. MCL_FUTURE locks all of the pages that become mapped into the process's address space in the future, when those mappings are established. You can specify MCL_CURRENT and subsequently specify MCL_FUTURE to lock both current and future address space. The munlockall function unlocks all currently mapped pages of the process's address space. Any pages that become mapped into a process's address space after a call to munlockall are not locked unless otherwise specified by a subsequent call to mlockall. Pages locked or mapped into another process's address space are unaffected by this process's call to the munlockall function. Locking the process's pages into memory also makes the process unswappable. When the pages are unlocked, the process is made swappable. A lock is not inherited across a fork. All memory locks established on an address by this process are removed if an address range associ- ated with the lock is unmapped with a call to the munmap function. You must have superuser privileges to call the mlockall function. RETURN VALUES
On a successful call to the mlockall function, a value of 0 (zero) is returned and memory is locked. On an unsuccessful call, a value of -1 is returned, no memory is locked, and errno is set to indicate that an error occurred. On a successful call to the munlockall function, a value of 0 (zero) is returned and memory is unlocked. On an unsuccessful call, a value of -1 is returned and errno is set to indicate that an error occurred. ERRORS
The mlockall and munlockall functions fail under the following condition: [ENOSYS] The implementation does not support this memory locking interface. If any of the following conditions occur, the mlockall function fails: [EAGAIN] Some or all of the memory identified by the operation could not be locked when the call was made. [EINVAL] The flags argument is zero or includes unimplemented flags. [ENOMEM] Locking all of the pages currently mapped into the process's address space exceeds an implementation-defined limit on the amount of memory that the process may lock. [EPERM] The calling process does not have the appropriate privilege to perform the requested operation. RELATED INFORMATION
Functions: exec(2), _exit(2), fork(2), munmap(2) Guide to Realtime Programming delim off mlockall(3)
All times are GMT -4. The time now is 06:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy