GNU bug report logs -
#39813
Running Guix in a Virtual Machine - says 1 GB RAM is enough, but it isn't for guix pull
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39813 in the body.
You can then email your comments to 39813 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Thu, 27 Feb 2020 20:07:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 27 Feb 2020 20:07:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I just got a report that with Guix in a virtual Machine (like described in the
manual in 8.16), guix pull does not actually work[1] with 1 GB of RAM.
It does work fine with 4 GB of RAM.
[1] build .....guix-packages-base.drv failed
[Message part 2 (application/pgp-signature, inline)]
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Wed, 13 Jul 2022 14:02:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Danny Milosavljevic <dannym <at> scratchpost.org>
:
bug acknowledged by developer.
(Wed, 13 Jul 2022 14:02:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 39813-done <at> debbugs.gnu.org (full text, mbox):
Hi Danny,
Danny Milosavljevic <dannym <at> scratchpost.org> writes:
> Hi,
>
> I just got a report that with Guix in a virtual Machine (like described in the
> manual in 8.16), guix pull does not actually work[1] with 1 GB of RAM.
> It does work fine with 4 GB of RAM.
I don't see any reference of 1 GiB being enough in our current version
of the manual. If you do, please let me know.
Closing for now.
Thanks,
Maxim
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Wed, 13 Jul 2022 17:01:02 GMT)
Full text and
rfc822 format available.
Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
> Hi Danny,
>
> Danny Milosavljevic <dannym <at> scratchpost.org> writes:
>
>> Hi,
>>
>> I just got a report that with Guix in a virtual Machine (like described in the
>> manual in 8.16), guix pull does not actually work[1] with 1 GB of RAM.
>> It does work fine with 4 GB of RAM.
>
> I don't see any reference of 1 GiB being enough in our current version
> of the manual. If you do, please let me know.
>
> Closing for now.
>
> Thanks,
>
> Maxim
I think it's enough if you only use a single core.
If any guix operations goes out of memory, add --cores=1.
So: guix pull --cores=1
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Wed, 13 Jul 2022 17:01:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Wed, 13 Jul 2022 17:22:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 39813 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I've heard that theory before. From observation on my late armhf server (two cores):
- it takes just below 2GB to build one of the derivations
- It doesn't swap a single byte
- whether with two or a single core, it takes roughly the same amount of memory
- substitution is nice, it doesn't require lots of memory (and then --cores is useless)
I think it's because we load all the files in a batch before we build them. The biggest amount of memory required is not for running the compiler on a thread, but for loading files and keeping them in memory for the whole duration of the build. With more threads, we still don't load each file more than once (twice to build it), so there's no reason it should take more memory.
Or maybe the process of loading and building is inherently single-threaded? I don't think so, but maybe?
Or it doesn't honor --cores.
Le 13 juillet 2022 18:58:58 GMT+02:00, Csepp <raingloom <at> riseup.net> a écrit :
>
>Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>
>> Hi Danny,
>>
>> Danny Milosavljevic <dannym <at> scratchpost.org> writes:
>>
>>> Hi,
>>>
>>> I just got a report that with Guix in a virtual Machine (like described in the
>>> manual in 8.16), guix pull does not actually work[1] with 1 GB of RAM.
>>> It does work fine with 4 GB of RAM.
>>
>> I don't see any reference of 1 GiB being enough in our current version
>> of the manual. If you do, please let me know.
>>
>> Closing for now.
>>
>> Thanks,
>>
>> Maxim
>
>I think it's enough if you only use a single core.
>If any guix operations goes out of memory, add --cores=1.
>So: guix pull --cores=1
>
>
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Wed, 13 Jul 2022 17:22:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Wed, 13 Jul 2022 17:23:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Wed, 13 Jul 2022 20:01:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 39813 <at> debbugs.gnu.org (full text, mbox):
Am Mittwoch, dem 13.07.2022 um 19:21 +0200 schrieb Julien Lepiller:
> I've heard that theory before. From observation on my late armhf
> server
> (two cores):
>
> - it takes just below 2GB to build one of the derivations
> - It doesn't swap a single byte
> - whether with two or a single core, it takes roughly the same amount
> of memory
> - substitution is nice, it doesn't require lots of memory (and then -
> -
> cores is useless)
>
> I think it's because we load all the files in a batch before we build
> them. The biggest amount of memory required is not for running the
> compiler on a thread, but for loading files and keeping them in
> memory for the whole duration of the build. With more threads, we
> still don't load each file more than once (twice to build it), so
> there's no reason it should take more memory.
>
> Or maybe the process of loading and building is inherently single-
> threaded? I don't think so, but maybe?
Loading and building is implemented in build-aux/compile-all.scm, which
does use multiple parallel workers. However, since all compilation
appears to be done in the same Guile process, I don't think multi-
threading makes too big of an impact (it'll be the same garbage
collector regardless of ordering).
Cheers
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Wed, 13 Jul 2022 20:01:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Thu, 14 Jul 2022 12:58:01 GMT)
Full text and
rfc822 format available.
Message #34 received at 39813 <at> debbugs.gnu.org (full text, mbox):
Liliana Marie Prikler <liliana.prikler <at> gmail.com> writes:
> Am Mittwoch, dem 13.07.2022 um 19:21 +0200 schrieb Julien Lepiller:
>> I've heard that theory before. From observation on my late armhf
>> server
>> (two cores):
>>
>> - it takes just below 2GB to build one of the derivations
>> - It doesn't swap a single byte
>> - whether with two or a single core, it takes roughly the same amount
>> of memory
>> - substitution is nice, it doesn't require lots of memory (and then -
>> -
>> cores is useless)
>>
>> I think it's because we load all the files in a batch before we build
>> them. The biggest amount of memory required is not for running the
>> compiler on a thread, but for loading files and keeping them in
>> memory for the whole duration of the build. With more threads, we
>> still don't load each file more than once (twice to build it), so
>> there's no reason it should take more memory.
>>
>> Or maybe the process of loading and building is inherently single-
>> threaded? I don't think so, but maybe?
> Loading and building is implemented in build-aux/compile-all.scm, which
> does use multiple parallel workers. However, since all compilation
> appears to be done in the same Guile process, I don't think multi-
> threading makes too big of an impact (it'll be the same garbage
> collector regardless of ordering).
>
> Cheers
Hmm, for some reason it finishes much faster on my i686 netbook with
--cores=1. I'll try to look into it further. I enable swap on it but it
doesn't use a lot of it. Maybe using an HDD matters too, since swapping
is much more expensive on it. Disabling parallelism tends to help because
it can halve the worst case memory usage. If foo.c and bar.c both
require at most 1M during build, building them in parallel is 2M in the
worst case, but only 1M when serialized. Oh and this is with
channel-with-substitutes-available. So either that's broken or something
still needs building.
Anyways, I should take a looksie at build-aux/compile-all.scm, maybe I
can decrease the memory usage.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#39813
; Package
guix
.
(Thu, 14 Jul 2022 12:58:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 12 Aug 2022 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 316 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.