Re: pte-highmem-5

Andrea Arcangeli (andrea@suse.de)
Thu, 17 Jan 2002 16:30:21 +0100


On Thu, Jan 17, 2002 at 09:31:12AM +0100, Christoph Rohland wrote:
> Hi Andrea,
>
> On Wed, 16 Jan 2002, Andrea Arcangeli wrote:
> > They were running out of pagetables, mapping 1G per-task (shm for
> > example) will overflow the lowmem zone with PAE with some houndred
> > tasks in the system. They were pointing the finger at the VM but the
> > VM was just doing the very right thing to do.
>
> This lets me think about putting the swap vector of shmem into highmem
> also. These can get big on highend servers and exactly these servers
> tend to use a lot of shared mem.
>
> What do you think?

How much allocated shm do you need to fill 800mbyte of normal zone with
the shm swap vector?

(btw, I suspect allocating one page at offset 4G in every shmfs file
could make the overhead per page of shm to increase)

But in real life I really don't expect problems here, one left page of
the vector holds 1024 swap entries, so the overhead is of the order of
1/1000. On the top of my head (without any precise calculation) 64G of
shm would generate stuff of the order of some houndred mbytes of ram
(please correct me if I'm wrong of course). The malicious case of all
files with one page mapped at the very end, doesn't sounds realistic
scenario either. Comments?

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