Solved

Single process memory limit

Posted on 2002-06-25
7
334 Views
Last Modified: 2012-06-21
I have redhat 7.3 with 4 gigs physical ram on a dual xeon processor.  

I'm aware that linux has a 3 gig memory limit for a single process, splitting the 4 gigs into 1 gig of kernel memory and 3 gigs for the user space.

How do I increae my user space memory from 3 gigs to something higher (the closer to 4, the better)?  Is there just a parameter I can tune?  Will I need to recompile anything?

Thanks,
Brett
0
Comment
Question by:brgordon
7 Comments
 
LVL 3

Expert Comment

by:DVB
ID: 7109908
ulimit might help you. If not, then you have to recompile the kernel probably.
0
 

Author Comment

by:brgordon
ID: 7110336
I already checked, but ulimit doesn't do anything in relation to this.

There supposedly is a kernel parameter that can be tuned, but I don't know
1) which one
2) where it is
3) how to tune it (what new value should I use)
4) how to recompile

Thanks,
Brett
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 50 total points
ID: 7111761
AFAIK this parameter is compiled in the kernel and cannot be changed dynamically
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:brgordon
ID: 7111915
ahoffman,

I've read in some places that this parameter can be changed in the kernel source and then recompiled.  The parameter I heard about was called  __PAGE_OFFSET located in /include/asm-i386/page.h

But, I do need more information......


Thanks,
Brett
0
 
LVL 3

Accepted Solution

by:
DVB earned 250 total points
ID: 7118207
Grab the kernel source from your local mirror of http://www.kernel.org/
Edit include/asm-i386/page.h, set __PAGE_OFFSET to the new value and then follow the kernel howto.
In brief,
make menuconfig
make -j4 bzImage modules
make modules_install
cp the kernel image to /boot, and the System.map file
edit lilo.conf,
/sbin/lilo
reboot

Otherwise, you can stick to the redhat sources (install the SRPM), the sources will be dumped in /usr/src/linux. edit, then make menuconfig and use one of the default config files.
0
 

Author Comment

by:brgordon
ID: 7118655
DVB,

Could you elaborate on editing and making the SRPMs from Redhat?  

Is page.h the only file that I need to edit in the source?  What new value should I set it to?  What exactly are the other files that I need to edit?

I'm not that familiar with any of this, so the more detail, the better.

Thanks,
Brett
0
 

Expert Comment

by:CleanupPing
ID: 9088989
brgordon:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now