Re: Is it a bug (about share memory)?

From: Andrew Morton
Date: Sun Aug 24 2003 - 04:51:55 EST


"Zheng, Jeff" <jeff.zheng@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/