Re: [9fans] lowest valid stack address

2009-09-01 Thread Devon H. O'Dell
2009/9/1 Russ Cox : >> aside: from the overcommit vm discussion. >> in http://9fans.net/archive/2000/06/634 rob >> says that plan 9 doesn't overcommit vm. >> what's the history here? > > i think plan 9 does overcommit vm and did then too. It very much so does. --dho > russ > >

Re: [9fans] lowest valid stack address

2009-09-01 Thread Russ Cox
> aside: from the overcommit vm discussion. > in http://9fans.net/archive/2000/06/634 rob > says that plan 9 doesn't overcommit vm. > what's the history here? i think plan 9 does overcommit vm and did then too. russ

Re: [9fans] lowest valid stack address

2009-09-01 Thread erik quanstrom
On Tue Sep 1 19:24:33 EDT 2009, r...@swtch.com wrote: > I believe that the Stack line in /proc/$pid/segment > tells you the lowest possible stack address, not > the amount in use right now. I looked in the kernel > source and tried it in 9vx and it confirms my belief. > I don't have a Plan 9 kern

Re: [9fans] lowest valid stack address

2009-09-01 Thread Russ Cox
I believe that the Stack line in /proc/$pid/segment tells you the lowest possible stack address, not the amount in use right now. I looked in the kernel source and tried it in 9vx and it confirms my belief. I don't have a Plan 9 kernel to try it on right now, so maybe I'm wrong. Do you have two d

Re: [9fans] lowest valid stack address

2009-09-01 Thread erik quanstrom
On Tue Sep 1 12:56:41 EDT 2009, quans...@quanstro.net wrote: > On Tue Sep 1 12:54:06 EDT 2009, cinap_len...@gmx.de wrote: > > > read /proc/$pid/segment > > how do i know how low the stack segment can go? i should have been more explicit. it's not that useful to know what the current stack all

Re: [9fans] lowest valid stack address

2009-09-01 Thread erik quanstrom
On Tue Sep 1 12:54:06 EDT 2009, cinap_len...@gmx.de wrote: > read /proc/$pid/segment > how do i know how low the stack segment can go? - erik

Re: [9fans] lowest valid stack address

2009-09-01 Thread cinap_lenrek
read /proc/$pid/segment -- cinap --- Begin Message --- assuming no thread library, is there a way of determining the lowest valid stack address from userspace? the purpose is to create a test onstack() so that it can be asserted that a given pointer is !onstack. thread library knows. is it fair

[9fans] lowest valid stack address

2009-09-01 Thread erik quanstrom
assuming no thread library, is there a way of determining the lowest valid stack address from userspace? the purpose is to create a test onstack() so that it can be asserted that a given pointer is !onstack. thread library knows. is it fair to assume that the stack can be up to 256mb? how does