Sponsored Content
Top Forums UNIX for Dummies Questions & Answers upper limit of accessible memory space for a single process in Unix/Linux Post 302115958 by jim mcnamara on Monday 30th of April 2007 10:09:14 AM
Old 04-30-2007
Available virtual memory = RAM + swapfile - (currently in use)
So, if the total is 3GB + (probably) 6GB swap, you have nine GB to use. The total memory for a process is kernel space + user space. What version of unix do you have?
For example, free gives you this information on Linux boxes.

Generally, processes that use huge amounts of memory will cause the system to bog because of all the extra paging activity involved. If this is a multiuser system, you might want to ask first. And check ulimit for your account, also.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

UNIX export command - memory space

Hello, I have 2 or more environment files, with identical variable names; see below: .env_file1 export PROJNAME="XYZ" export PROJID="2" .env_file2 export PROJNAME="WSX" export PROJID="9" .env_file(n) export PROJNAME="QAZ" export PROJID="12" The env files above will be sourced... (2 Replies)
Discussion started by: Nomaad
2 Replies

2. Linux

mamimum memory single process

How can i Globally set the maximum core memory a single process can take. IE, i want to set that no single process may get more than 11GB. I am running red hat enterprise unix 4. (9 Replies)
Discussion started by: frankkahle
9 Replies

3. UNIX for Advanced & Expert Users

process memory change in unix

Hello! I was wondering if I could trouble all your experts with a couple questions regarding checking memory usage changes during the run time in the specific program (process) under UNIX. 1. After the program starts running, is ps the best way to tell the total memory usage at the any time? ... (2 Replies)
Discussion started by: aginger
2 Replies

4. Programming

Access process memory from kernel space

Hi, I'm currently working on a project to help the analysis of malware from inside the kernel to avoid any kind of detection. So I need to be able to read the process memory from my kernel module. As of now, I'm stuck at converting a virtual memory address (for example 0x080483e8 found... (3 Replies)
Discussion started by: anonymoose
3 Replies

5. Red Hat

about shared memory space in Linux !

Dear Friends , I am confused about shared memory in Linux . plz look @ the below output : $ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 126G 61G 59G 52% / tmpfs 1.7G 0 1.7G 0% /dev/shm Here , I see that every time... (1 Reply)
Discussion started by: shipon_97
1 Replies

6. UNIX for Dummies Questions & Answers

change the memory address of ld.linux-so in a dynamically linked process

hi, For some special reason , I'd like to control the memory address for the shared libraries in my dynamically linked process. And it is the "ld" which interpret the dynamically linked library, and in my system, the "ld-linux.so.2" is put at 0x00812000. Then I use "prelink -r" command to change... (0 Replies)
Discussion started by: zerocool_08
0 Replies

7. Programming

Compute upper and lower limit of data types.

hello all, am stuck with ?. how to compute limits of char, int, float. i have done it simply displaying values from <limits.h> but i wan to calculate it.. its absolutley not a homework. thank you. (7 Replies)
Discussion started by: zius_oram
7 Replies

8. HP-UX

Single Process Memory Allocation HP-UX 11i v3

Hi, I have HP-UX 11i v3 running on ia64. One of my application is 32-bit and I want to increase the memory allocation of this file upto 2GB. I am contentiously receiving an error message of Out of Memory. Can you please explain the procedure what kernel configuration( like maxdsize or... (1 Reply)
Discussion started by: ahmadamin416
1 Replies

9. Programming

Memory allocation for particular process in UNIX

I want to run a C program on my linux machine. I want to allocate specific heap size for that process (C program) to run. How can I do that? I know in Java same can be done using -Xmx option. There may be some option which I can specify in the C program like Java or may be in linux process. (8 Replies)
Discussion started by: Ankur Goyal
8 Replies

10. UNIX for Beginners Questions & Answers

Single line archive log files command if exceed certain limit in Linux

Hello Guys, Is there a single line archive command to zip or tar log files which is larger than certain size limit ? Do let me know if there is any. Thanks (7 Replies)
Discussion started by: UnknownGuy
7 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 10:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy