Deutsch   English   Français   Italiano  
<uvts5r$2mc88$4@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor <vallor@cultnix.org>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Building Linux in /dev/shm
Date: Fri, 19 Apr 2024 13:39:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <uvts5r$2mc88$4@dont-email.me>
References: <uvpmng$1mntq$4@dont-email.me> <uvrbur$2ae33$1@dont-email.me>
	<uvsmah$2mc88$1@dont-email.me> <uvtrkq$312kp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 19 Apr 2024 15:39:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="36b71613ccf4070cbd5a06532989882e";
	logging-data="2830600"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+mAOR2ZsOyN1Fj2nOND62h"
User-Agent: Pan/0.158 (Avdiivka; 6a11104 gitlab.gnome.org/GNOME/pan.git;
 x86_64-pc-linux-gnu)
Cancel-Lock: sha1:cwhTTRH6KJ6koKd+u4t2kC82G0E=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
 XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
Bytes: 3194

On Fri, 19 Apr 2024 13:30:02 -0000 (UTC), candycanearter07
<candycanearter07@candycanearter07.nomail.afraid> wrote in
<uvtrkq$312kp$1@dont-email.me>:

> vallor <vallor@cultnix.org> wrote at 02:53 this Friday (GMT):
>> On Thu, 18 Apr 2024 14:50:03 -0000 (UTC), candycanearter07
>><candycanearter07@candycanearter07.nomail.afraid> wrote in
>><uvrbur$2ae33$1@dont-email.me>:
>>
>>> vallor <vallor@cultnix.org> wrote at 23:41 this Wednesday (GMT):
>>>> $ df -h .
>>>> Filesystem      Size  Used Avail Use% Mounted on tmpfs           126G
>>>>  542M  126G   1% /dev/shm
>>>>
>>>> What do you think?  Is it worth it to try building Linux on a
>>>> ramdisk?
>>>>
>>>> 6.8.7 is out now, so I thought I'd try it:
>>>>
>>>> $ time -p make -j 32 [...]
>>>> real 432.09 user 11085.32 sys 2520.37
>>>>
>>>> That's with a "kitchen sink" build using a .config that originally
>>>> came from Linux Mint's "lowlatency" sources.
>>>>
>>>> (To set it up, I unpacked the tar file onto /dev/shm -- much faster
>>>> than if I'd tried to rsync the unpacked sources.)
>>>>
>>>> After the build:
>>>> $ df -h .
>>>> Filesystem      Size  Used Avail Use% Mounted on tmpfs           126G
>>>>   23G  103G  19% /dev/shm
>>>>
>>>> (Of course, now that I've done this stunt, I'm rsync'ing the tree
>>>> onto my NAS, so I'll have it after the reboot.)
>>>>
>>>> And there you go: doing Linux stunts, so you don't have to.
>>> 
>>> 
>>> Isn't /tmp usually mounted as a ramdisk?
>>
>> Some distros might do that.  Linux Mint doesn't, and I don't advise it.
> 
> 
> $ findmnt /tmp
> 
> TARGET SOURCE FSTYPE OPTIONS /tmp   tmpfs  tmpfs 
> rw,nosuid,nodev,size=8043524k,nr_inodes=1048576,inode64
> 
> Mine does at least.

Interesting.  What distribution are you using?

My concern would be filling it up, but that's probably
just my "old school" thinking from back in the day when
computers had much less memory.

-- 
-v