Hi Götz,

On 2/14/24 18:10, Goetz T. Fischer wrote:
> hi all,
> 
> i recently started working on illumos-gate and ran into a small meanness 
> that's probably worth a note in 
> the docs.
> 
> the filesystem i created for gate is generous and i have plenty ram so i keep 
> swap small. that's working 
> fine because i never run out of ram. the nightly script however uses /tmp 
> quite a lot and hence needs 
> some space there.
> now the meanness is that by default /tmp does neither use the ram nor the 
> "regular" rpool's filesystem 
> but swap. as you can imagine, my first build attempts crashed spectacularly.

Sorry for the trouble here, we'll work on improving the docs. I assume
your system was set to have a number of default max jobs based on the
number of CPUs that you have and that parallelism is part of the DRAM
demands. How many CPUs were showing up just so I can make sure to take
some notes.

While the effect doesn't change, just a small note that tmpfs is going
to all be in RAM at the end of the day, but it does require a swap
reservation, which is where some of that disconnect is happening. So it
won't actually end up getting sent out to a swap partition in general.
Doesn't change the unfortunate failure mode you hit.

> so i would suggest to add a friendly warning to the docs that building gate 
> needs at least 4gb swap. no 
> matter how much ram you have.
> in my opinion the better way would be to not use /tmp but keep the temp files 
> to a folder alongside the 
> gate folder. that way the issue would be gone and the space needs would be 
> constrained to wherever gate 
> is located.

We'll look at that. I think the challenge is that some folks don't want
to send I/O to devices more than is necessary, but improving the out of
box case here and not leading to an immediate failure like you
experienced needs to be better.

Thanks for reaching out about this and sorry for the trouble.

Robert

------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/T5d96b425786a2696-M80dbe20adb42ed1ac42ad35c
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to