lkml.org 
[lkml]   [2006]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: RSS accounting (was: Re: 2.6.19-rc1-mm1)
    On Wed, Oct 11, 2006 at 10:15:39AM -0700, Chen, Kenneth W wrote:
    > I'm more inclined to define RSS as "how much ram does my application
    > cause to be used". To monitor process's working set size, We already
    > have /proc/<pid>/smaps. Whether we can use working set size in an
    > intelligent way in mm is an interesting question. Though, so far such
    > accounting is not utilized at all.

    If that is the case, it would make sense to account such things as page
    tables and other kernel allocations against the RSS, which would be useful.
    That said, it's possible to keep semantics fairly close to those currently
    implemented by tracking RSS differently for shared vs private areas --
    those vmas which are shared could be placed on a list and then summed when
    RSS is read. That said, I'm not sure it is a good idea, as the cost of
    obtaining RSS for tools like top is exactly why we have the current
    counters maintained to provide O(1) semantics.

    All of the old semantics are covered by smaps, though, so I'd agree with
    any changes to make RSS reflect allocations incurred by this process.

    -ben
    --
    "Time is of no importance, Mr. President, only life is important."
    Don't Email: <dont@kvack.org>.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-10-12 00:39    [W:2.200 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site