Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on ARM is painful without a fast storage device.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 160

PostPosted: Tue Oct 13, 2020 7:38 am    Post subject: Reply with quote

I've been using tmpfs on my 8GB of ram for about 5 years now without much issue. It's possible. Still takes hours to do anything though due to the cpu being so old...
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 436

PostPosted: Tue Oct 13, 2020 7:42 am    Post subject: Reply with quote

skiwarz wrote:
I've been using tmpfs on my 8GB of ram for about 5 years now without much issue. It's possible. Still takes hours to do anything though due to the cpu being so old...


8GB is not enough for tor browser. It may not be enough for rust.
Back to top
View user's profile Send private message
pa4wdh
Guru
Guru


Joined: 16 Dec 2005
Posts: 410

PostPosted: Tue Oct 13, 2020 5:48 pm    Post subject: Reply with quote

My desktop has only 8GB RAM and i use a 7500M tmpfs to compile packages. It works for most things i use (including gcc, firefox, thunderbird). The free space check for rust actually fails, but with MAKEOPTS=-j1 and I_KNOW_WHAT_I_AM_DOING set it compiles ok.
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

Free as in Freedom is not limited to software only:
Music: http://www.jamendo.com
Recipes: http://www.opensourcefood.com
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 436

PostPosted: Wed Oct 14, 2020 9:20 am    Post subject: Reply with quote

pa4wdh wrote:
My desktop has only 8GB RAM and i use a 7500M tmpfs to compile packages. It works for most things i use (including gcc, firefox, thunderbird). The free space check for rust actually fails, but with MAKEOPTS=-j1 and I_KNOW_WHAT_I_AM_DOING set it compiles ok.


I think even a single board computer with 4GB RAM can handle 750MB tmpfs. For a self-compiling server, that's good.
Raspberry Pi 4 with 8GB RAM can definitely serve as a desktop with 750MB tmpfs and MAKEOPTS=-j1 for large packages.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 639
Location: EU

PostPosted: Fri Oct 16, 2020 8:10 pm    Post subject: Reply with quote

I used gentoo emerging weekly + emerge -e @world a lot of times on my 120G SSD without problems for a lot of years, it still reports that 80% of write cycles are availabe. It is not worth the effort and extra ram required compiling in tmpfs to spare the SSD.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 436

PostPosted: Sat Oct 17, 2020 5:02 am    Post subject: Reply with quote

erm67 wrote:
I used gentoo emerging weekly + emerge -e @world a lot of times on my 120G SSD without problems for a lot of years, it still reports that 80% of write cycles are availabe. It is not worth the effort and extra ram required compiling in tmpfs to spare the SSD.


How do you know that 80% of write cycles are available? Does smartctl tell you that?
Back to top
View user's profile Send private message
danielittlewood
n00b
n00b


Joined: 13 Apr 2020
Posts: 42

PostPosted: Sat Oct 17, 2020 5:10 pm    Post subject: Reply with quote

I have a Raspberry Pi setup with Gentoo, but I haven't updated it before (it's quite new).
I have always assumed that you would not compile on the Pi, since it would wear our the SD as others have noted.
I do not have an external SSD, only an HDD. I suspect tmpfs is not an option, since my model only has 1GB of RAM.
Does anyone have experience of compiling on an external HDD mount?

I have another option of using my old PC to crosscompile and using it as a binary package server. Not sure which will be better.
_________________
Through gcc, all things are possible.
Back to top
View user's profile Send private message
erm67
l33t
l33t


Joined: 01 Nov 2005
Posts: 639
Location: EU

PostPosted: Sat Oct 17, 2020 5:16 pm    Post subject: Reply with quote

crocket wrote:
erm67 wrote:
I used gentoo emerging weekly + emerge -e @world a lot of times on my 120G SSD without problems for a lot of years, it still reports that 80% of write cycles are availabe. It is not worth the effort and extra ram required compiling in tmpfs to spare the SSD.


How do you know that 80% of write cycles are available? Does smartctl tell you that?

Yes but the ssd is so old that it doesn't really matter how many cycles are left, with 30€ I can buy one with twice as much capacity... Really it is not necessary to emerge in tmpfs, it will just reduce the file cache and the memory available to the compiler.
_________________
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46727
Location: 56N 3W

PostPosted: Sat Oct 17, 2020 5:27 pm    Post subject: Reply with quote

danielittlewood,

Compiling on an external USB HDD works. I have everything except boot on USB.

With the Pis before the Pi4, everything except the SD card and Wifi (if fitted) was over a single USB port, so there was only 440Mbit/sec for everything.
That was fixed on the Pi4 which has USB3 and Ethernet on their own links.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 436

PostPosted: Sun Oct 18, 2020 3:05 am    Post subject: Reply with quote

It turns out that qtwebengine requires at least 2.9GB from tmpfs on /var/tmp/portage
Is zram going to compress this into 750MB?
Back to top
View user's profile Send private message
gtwrek
n00b
n00b


Joined: 10 Mar 2017
Posts: 29
Location: San Jose, CA

PostPosted: Thu Oct 29, 2020 3:06 pm    Post subject: I use NFS Reply with quote

For what it's worth, on my Pi4, I mount /var/tmp, and /var/cache/distfiles over NFS to a spinning rust server. (My Pi4 is hardwired ethernet, no Wifi).

Solves most of my disk space (and worry about wear) issues on my Pi4.

(Can't comment on effects on emerge performance because of the above.)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum