LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-11-2007, 01:19 AM   #1
gloridel
LQ Newbie
 
Registered: Apr 2007
Posts: 25

Rep: Reputation: 0
Question How to set Stack/Heap Limit ?


Hello

I/We are trying to change the min of the stack to grow down, and max of heap to grow. Basically we want to try to use or reserve areas in this section.

Right now, we know that stacks occupies 4 pages for it to grow. And in relocate.S , its initialize like this :
.comm .stack,4096*2,4

Does anybody have any idea how to set the limit for both areas? like maybe compilation option ?

Thanks and hope for any insights
 
Old 06-11-2007, 02:56 AM   #2
gloridel
LQ Newbie
 
Registered: Apr 2007
Posts: 25

Original Poster
Rep: Reputation: 0
just found out where stack limit is defined :

linux/sched.h

#define _STK_LIM


 
  


Reply

Tags
heap, stack



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Max Stack Size limit on Linux 2.4 rhegde Debian 0 08-08-2006 02:18 PM
heap or stack yashwantpinge Programming 1 03-17-2006 07:25 AM
Is array allocated on heap set to zero? nibbler Programming 3 12-14-2005 02:55 AM
how to set a sshd retry limit Finlay Linux - Networking 6 08-27-2004 04:20 PM
Removing 4k stack size limit on 2.6.7-1.456 Corallis Fedora 2 07-23-2004 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration