how to allocate more memory to a process in linux
fedora, memory, memory-management
Solution
That's not how memory management works on Unix/Linux. You don't allocate memory to processes, they just request more virtual memory as they need it.
Maybe what you're talking about is the process's virtual memory limit. You can use the shell's `ulimit` command to set various process limits; use the `-d` option to set the maximum size of the process's data segment (i.e. the heap), and `-s` for the stack. However, non-root users can only reduce their limits, they can't increase them. This option applies to that shell process and any programs run from it; I'm not sure how you'd do this for applications from the GUI window manager (maybe put the command in your `.xinitrc`).
The system administrator can configure per-user and per-group default limits in `/etc/security/limits.conf`.
Problem
I am using a CAD program on 64 bit Fedora 16. At one point the program suddenly crashes and completely exits. My initial guess is that there is not enough memory available for that program to perform that operation and it quits. To test it, I want to allocate more memory to that particular program and in doing so I am ok if other programs do not have enough memory. How can I do this? How can I tell (hopefully through terminal) the system to allocate increased memory to a particular process?