LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 06-11-2007, 01:19 AM   #1
gloridel
LQ Newbie
 
Registered: Apr 2007
Posts: 24

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: 24

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

linux/sched.h

#define _STK_LIM


 
  


Reply

Tags
heap, stack


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 12:32 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration