Sponsored Content
Full Discussion: Memory limit for C program
Operating Systems AIX Memory limit for C program Post 302546059 by DGPickett on Wednesday 10th of August 2011 09:59:20 AM
Old 08-10-2011
It may ignore you if your platform or the specified target platform is not 64 bit address capable. However, it says it would warn.

The pdf says '=' after -bmaxdata, not ':'.

Does -qmaxmem= apply?

Are 64 bit libs in use/in dynamic search path?

Cute: setting compiler optimization space too big may exhaust swap!

Did you know that if you create a nominally huge ufs file with seek and write, only 1 block is used? Then, mmap6() allows you to do sparse array in 64 bit space, where missing entries are nulls for free (use RAM but no disk).

(Some sleazy money grubbers leave out options unless you buy a more premium compiler, so try gcc/g++ 64 bit and see if it works when this does not!)

Good luck!
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Program/ Memory Problems

I need some advise. I have an application server running several applications. When I try and start a particular application when the others are running I receive the following. This is appearing in the core file that is created. ... (1 Reply)
Discussion started by: dbrundrett
1 Replies

2. UNIX for Dummies Questions & Answers

upper limit of accessible memory space for a single process in Unix/Linux

Hellp all, if there is 3G memory in my Unix server I want to know if all the 3G space can be used by ong sigle process. As i know, in Windows, one process can only access at most 1G memory despite there is probably more than 1G memory is equipped. (1 Reply)
Discussion started by: cy163
1 Replies

3. Ubuntu

Redhat 2.1 AS Memory Limit?

I have a customer with an HP DL380 G4 server running Redhat 2.1 AS that has 4GB memory installed. They want to upgrade in the server to the maximum of 12GB using (6) 2GB DIMMs. I can do this for them, but I read somewhere that Redhat 2.1 has an upper memory limit. Or you need a kernel patch to use... (2 Replies)
Discussion started by: Cbish68
2 Replies

4. Programming

Measuring memory used by a program?

I have a Java program. I want to measure the total memory used by the program, especially the peak memory. Is there a way to do it? I have tried utilities like time (which returns 0) and top (which is not very useful) as the program does not run for long. Can anyone suggest a way to do this?... (5 Replies)
Discussion started by: spathical
5 Replies

5. Shell Programming and Scripting

AWK Memory Limit ?

Is there an input file memory limit for awk? I have a 38Mb text file that I am trying to print out certatin lines and add a string to the end of that line. When I excute the script on the 38Mb file the string I am adding is put on a new line. If I do the same with a smaller file the... (3 Replies)
Discussion started by: cold_Que
3 Replies

6. Shell Programming and Scripting

Memory limit on php in .sh script

Hi, I have .sh script running php script with "php". When I run php script from web browser, it is running without errors. When I run it from .sh script, I am getting "memory exhausted". It seems to me that running php from .sh does not respect php.ini or have its own setting. So, how can I set... (0 Replies)
Discussion started by: LukasB
0 Replies

7. Programming

Shared memory between two c program

i have to shared a variable between two different c programs with shared memory and i do these: int main() { int a=5,b=7; int buffer; int *point; int shmid; shmid=shmget(IPC_PRIVATE , sizeof(buffer),0666); point=(int *)shmat(shmid,NULL,0); point=a; ... (21 Replies)
Discussion started by: tafazzi87
21 Replies

8. Red Hat

PAE kernel memory limit

What is the limit of LowMem and HighMem in PAE enable kernel. (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies

9. Programming

Size of memory used by a program

Hello, Here is a portion of my code: a=(int *) malloc(dim*dim*sizeof(int)); b=(int *) malloc(dim*dim*sizeof(int)); c=(int *) malloc(dim*dim*sizeof(int)); for(i=0;i<dim;i++) for(j=0;j<dim;j++) c= rand(); for(i=0;i<dim;i++) for(j=0;j<dim;j++) b=rand(); ... (6 Replies)
Discussion started by: chercheur111
6 Replies

10. Red Hat

Cpu, memory - limit by user

Hi all ! I'm new in this site, so sorry if this question is into wrong place. How can I limit cpu/core and memory usage by user? System: RedHat Ent. Linux. 6.4 Tks, (4 Replies)
Discussion started by: Tiago
4 Replies
aio_physmem_pct(5)						File Formats Manual						aio_physmem_pct(5)

NAME
aio_physmem_pct - percentage of physical memory lockable for request call-back POSIX asynchronous I/O operations VALUES
Failsafe Default Allowed values The minimum value allowed is The maximum value allowed is Specify a positive integer value. DESCRIPTION
This parameter places a limit on how much system memory can be locked by the total number of POSIX asynchronous I/O operations that are in progress at any given time. It is important to be aware that an operation remains on the active queue and memory is not released, even if the operation is complete, until it is properly terminated by an call for that operation. The value of represents a percentage of system memory, and the limit it controls will adjust with Online Addition or Deletion of physical memory (OL*), as appropriate. Asynchronous I/O operations that use a request-and-callback mechanism for I/O must be able to lock the memory they are using. The request- and-callback mechanism is used only if the device drivers involved support it. Memory is locked only while the I/O transfer is in progress. imposes a system-wide limit on lockable physical memory. A per-process lockable-memory limit can also be self-imposed by using the system call within the application program (see setrlimit(2)). Who Is Expected to Change This Tunable? System administrators that run applications requiring heavy usage of POSIX AIO to file systems. Restrictions on Changing This tunable is dynamic. Any changes to the value of this tunable will take effect immediately without requiring system reboot. The amount of memory that can be locked under the limit imposed by cannot exceed the total system wide lockable memory limit imposed by The limit dictated by this tunable, is checked individually for each incoming request for file system or devices that support the request/callback mechanism. When tuning to a lower value, the new limit will be immediately enforced for all new requests, and the tuning will succeed even if the current usage count is higher. The usage will then gradually adjust to the new limit. When Should the Value of This Tunable Be Raised? On a large server it is better to increase to higher values (up to 50). What Other Tunables Should Be Changed at the Same Time as This One? The total amount of memory that can be locked at any given time for any reason, not just for asynchronous I/O, is controlled by the system- wide limit Other system activity, including explicit memory locking with the and/or interfaces can also affect the amount of lockable mem- ory at any given time. There is no kernel parameter named but there is a parameter named that affects it. The value of is determined by subtracting the value of from the amount of system memory available after system startup. During startup, the system displays on the system console the amount of its lockable memory (along with available memory and physical memory). These values can be retrieved while the system is running with com- mand. 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
kctune(1M), sam(1M), gettune(2), settune(2), aio(5), aio_return(2), dmesg(1M), mlock(2), plock(2), getrlimit(2), setrlimit(2), unlock- able_mem(5). Tunable Kernel Parameters aio_physmem_pct(5)
All times are GMT -4. The time now is 11:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy