Re: 0k shared?

Richard B. Johnson (root@chaos.analogic.com)
Mon, 9 Jul 2001 15:25:50 -0400 (EDT)


On Mon, 9 Jul 2001, Ketil Froyn wrote:

> Hi.
>
> This may be a stupid question, but I found this strange. In making a small
> benchmarking utility, I made the following directory structure by mistake:
> a/a/a/a/a/a/a/a/a/a/.....
>
> By ..... I mean this goes on and on, there were around 18 thousand
> directories inward like this. A great example of the damage a bug in a
> recursive program can do ;) Anyway, I've removed it now (btw, rm -rf on
> this sigsegved :D).
>
> And now for the question. My /proc/meminfo looks like this:
[SNIPPED]

Not related. Somebody decided that it was too expensive to
keep track of shared memory usage so this field has been blank
for some time now.

Of course, the shared memory usage could be calculated by
the task that accesses the /proc file-system so the reason
cited above could go away. The cost would be that it wastes
a whole page of memory, but memory is plentiful now-a-days.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.

-
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/