1 |
On 2021-04-27 20:53+0000 Alan Mackenzie <acm@×××.de> wrote: |
2 |
|
3 |
> Hello, Gentoo. |
4 |
> |
5 |
> I'm having problems building rust. |
6 |
> |
7 |
> I build everything in a ram disk, and last night my 13 Gb ram disk |
8 |
> proved too small to build rust in. So I increased its size to 14 Gb, |
9 |
> and tried again this evening. Same result. The pre-check on the disk |
10 |
> size gave an OK both times, and both runs lasted about 45 minutes |
11 |
> before running out of space. |
12 |
> |
13 |
> Help! What am I supposed to do? I've got 16 Gb RAM (I'm _not_ going |
14 |
> to use the word "only" here), and wondering just how big a chunk a |
15 |
> ram disk can take out of that before the machine siezes up |
16 |
> altogether. But if I increase the ram disk to 15 Gb, even assuming |
17 |
> it'd work, it's only going to be a small number of releases before |
18 |
> the clever people at rust increase their bloat even more. |
19 |
|
20 |
You could use zram[1], it's like a ramdisk but compressed. Source code |
21 |
compresses very good, binary files compress to ~50% in my tests. |
22 |
|
23 |
> I know I could plump for the -bin package. Maybe I should. But |
24 |
> before I do that, is it possible to redirect this one ebuild away from |
25 |
> /var/tmp/portage (my ram disk) without disturbing the other builds? |
26 |
> If so, how would I do this (or where should I look for documentation)? |
27 |
|
28 |
You could create /var/tmp/portage/dev-lang/rust after creating the |
29 |
ramdisk and then bind-mount another directory to it. But then you'd |
30 |
have to tell portage to not delete it with FEATURES="keepwork"[2] |
31 |
(see`man 5 make.conf`) … I wouldn't recommend it. |
32 |
|
33 |
[1] <https://wiki.gentoo.org/wiki/Zram> |
34 |
[2] <https://wiki.gentoo.org/wiki//etc/portage/package.env> |
35 |
|
36 |
kind regards, tastytea |
37 |
|
38 |
-- |
39 |
Get my PGP key with `gpg --locate-keys tastytea@××××××××.de` or at |
40 |
<https://tastytea.de/tastytea.asc>. |