lkml.org 
[lkml]   [2003]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Is it a bug (about share memory)?
"Zheng, Jeff" <jeff.zheng@intel.com> wrote:
>
> I tried to use share memory to check vm overcommit by check Committed_AS
> in /proc/meminfo. It seems that attach of share momory will add the value
> of Committed_AS but detach of share memory does not reduce the value of
> Committed_AS.

shmdt() will not release resources. Run `ipcs' after your test app and you
will see the shm segment is still there.

Release it with ipcrm and Committed_AS falls back as expected.

-
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: 2005-03-22 13:48    [W:2.743 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site