pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: rust build requirements
Jan Danielsson <jan.m.danielsson%gmail.com@localhost> writes:
> I have read that building rust requires a ridiculous amount of
> memory, but I don't recall anyone specifying exactly how much that
> is. To limit wear and tear, I build all packages on a tmpfs, so I need
> the source, intermediate and target files to fit in memory. What is a
> ballpark guesstimate on how much free RAM one would need to avoid
> swapping when building rust on NetBSD/adm64 8.1 using 4 cores?
I have a machine that was high-end in 2014 (passed on by a gamer friend
:), with 24G of physical ram, 4 cores, SSD, and a 12G tmpfs where I put
pkgsrc workdirs. That builds rust ok.
I have two 10ish-year-old notebooks with 3 and 4G of RAM, 2 cores each
of i386 and amd64 respectively, spinning laptop disk, and smallish tmpfs
(0.75/1G ) where I do NOT put pkgsrc workdirs. Those build rust, but it
takes a crazy long time.
Build timestamps from 24G 2014-era desktop and 4G old notebook
-rw-r--r-- 1 root wheel 18483 Jul 28 08:08 py27-test-4.6.3nb1
-rw-r--r-- 1 root wheel 1610 Jul 28 08:08 py27-test-runner-4.4
-rw-r--r-- 1 root wheel 1414 Jul 28 08:08 py27-olefile-0.46
-rw-r--r-- 1 root wheel 2091477 Jul 28 09:53 rust-1.36.0
-rw-r--r-- 1 root wheel 2124 Jul 28 09:54 libpaper-1.1.28
-rw-r--r-- 1 root wheel 32855 Jul 28 09:54 py37-setuptools-41.0.1
-rw-r--r-- 1 root wheel 1134 Jul 28 09:55 py37-six-1.12.0
-rw-r--r-- 1 root wheel 56637 Jul 29 12:59 xscreensaver-5.40nb1
-rw-r--r-- 1 root wheel 8677 Jul 29 13:00 asciidoc-8.6.10nb1
-rw-r--r-- 1 root wheel 827 Jul 29 13:02 rhash-1.3.8
-rw-r--r-- 1 root wheel 2091477 Jul 30 03:26 rust-1.36.0
-rw-r--r-- 1 root wheel 1674 Jul 30 03:37 openjpeg-2.3.1
-rw-r--r-- 1 root wheel 1023 Jul 30 03:43 poppler-0.79.0
That's 1h45m and 14h24m.
I'm not really sure it doesn't swap on the big box, but I have tmpfs at
12G, so tmpfs even if full will allow 10G+ for programs
On the notebook, I have no idea. That machine's purpose in life now is
to build packages to look for trouble.
Earlier my 2014 box had 8G of tmpfs, because that seemed like a lot.
But something failed to fit, and I don't remember what it was. It could
well have been rust.
Home |
Main Index |
Thread Index |
Old Index