Re: [perf-discuss] The rm_assize() problem

2009-03-02 Thread Chad Mynhier
On Thu, Feb 26, 2009 at 2:10 PM, wrote: > >> (To expand on the problem a bit, the problem comes when a process maps >> a file into a segment that's larger than the file, e.g., mapping a 1K >> file into a 10K segment.  Currently rm_assize() will only count the >> space used through the end of the

Re: [perf-discuss] The rm_assize() problem

2009-02-26 Thread johansen
Hi Chad, > BTW, I've posted an updated webrev here: > http://cr.opensolaris.org/~cmynhier/6801244.1/. I wanted to do a > nightly build and some testing before posting it. This looks better. Thanks for making the changes we discussed before. > > The only options I see for doing this are either

Re: [perf-discuss] The rm_assize() problem

2009-02-25 Thread Chad Mynhier
On Wed, Feb 25, 2009 at 10:26 AM, Chad Mynhier wrote: >> vm/vm_rm.c: >> >>  - lines 105-135: Dumb question -> Where is this case handled now? >> > > Nope, not a dumb question, a dumb oversight on my part.  And this > might completely scupper what I want to do.  The only options I see > for doing t

Re: [perf-discuss] The rm_assize() problem

2009-02-25 Thread Chad Mynhier
Thanks for the comments. On Tue, Feb 24, 2009 at 5:15 PM, wrote: > Hi Chad, > You probably want a vm expert to take a look at this code, but I'm > happy to provide comments anyway. > > vm/as.h: > >  - line 114: You probably want this member at the end of the >    structure.  If we end up backpor

Re: [perf-discuss] The rm_assize() problem

2009-02-24 Thread johansen
Hi Chad, You probably want a vm expert to take a look at this code, but I'm happy to provide comments anyway. vm/as.h: - line 114: You probably want this member at the end of the structure. If we end up backporting the fix, we don't want to displace the pre-existing offsets in a struct

[perf-discuss] The rm_assize() problem

2009-02-24 Thread Chad Mynhier
I've submitted a bug related to this problem: http://bugs.opensolaris.org/view_bug.do?bug_id=6801244. The gist of this problem is that Solaris calculates the VM size of a process when asked, i.e., when some utility like ps(1) or prstat(1M) reads /proc//psinfo. This can be a problem on servers wit