bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/4] exec: Properly preallocate address space


From: Sergey Bugaev
Subject: Re: [PATCH 4/4] exec: Properly preallocate address space
Date: Mon, 3 Jul 2023 12:05:29 +0300

On Mon, Jul 3, 2023 at 11:40 AM Samuel Thibault <samuel.thibault@gnu.org> wrote:
> Sergey Bugaev, le lun. 03 juil. 2023 11:19:54 +0300, a ecrit:
> > But the brk is at a fixed high address (BRK_START),
>
> On x86_32 it's not that high.

It is pretty high (2 GB), out of the overall 3 GB address space. So
unless you use up all of the lower 2 GB of space, you're not going to
run into the brk.

In any case I don't see how sliding the executable mapping by 128 MB
is going to change this, you still have exactly as much address space
available before the BRK_START, but now it's (partly) below the
executable mapping and not after it.

It would really help to look at a specific executable. What did you
have in mind when you wrote 3130514bd99bdc4cf8a51e24be2d8bf6f1e47f62?

Sergey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]