RBERRYPI ---------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 50 из 100
 От   : bp                                  3:633/10          16 мар 26 14:30:01
 К    : All                                                   16 мар 26 06:35:03
 Тема : Re: Adding a hardware swap partition
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 3:633/10 bbb0b1b9
@REPLY: 3:633/10 c4bd1f0c
@PID: PyGate 1.5.13
@TID: PyGate/Linux 1.5.13
@CHRS: ASCII 1
@TZUTC: 1100
@REPLYADDR: bp@www.zefox.net
@REPLYTO: 3:633/10 UUCP
@RFC-Message-ID: <10p7d94$1giuh$1@dont-email.me>
Jim Diamond <zsd@jdvb.ca> wrote:

> Yes, but that has nothing much to do with the OP`s plan to put /usr on its
> own partition.  He didn`t indicate where /home was going, but if he puts it
> on the root partition, he can still fill that up.  And if /var is on /root,
> also problems.

> Which is why I was curious about why he wants to a separate /usr partition.

Since you ask...8-)

On rare occasions my 8GB Pi5 slowed to a crawl. Eventually I realized it was
happening when I had two browsers (firefox and chromium) both running with
too many tabs open. The system was short of memory. It needed swap to cope
this those occasions.

Hardware swap is _supposed_ to be faster than a swap partition, which made it,
at least in principle, more attractive. Also, in principle, a physical swap
partition can be placed _between_ (in the sense of seek stroke) /uar and /,
minimizing the amount of head movevent. This was true in the days of st506
disks, I`m not sure how true it is with SATA. So, I inquired about how this
might be done under RasPiOS. It`s not hurgely hard under FreeBSD and
I thought there might be some nifty tools for the purpose in RasPiOS.

The answers received have now led me to question the orignal premises.
No nifty tools have come to light. The relative speed of file-vs-hardware
swap haven`t been quantified. The need for occasional swap use remains, but
it`s sporadic. Maybe a swapfile is good enough.... it`s certainly easier.

It was a surprise to learn that a single partition is somehow required
for RasPiOS to function correctly. If true, it`s a good thing to know.
 
> Back in the good old days there were enough programs in /bin (which was an
> actual directory, not a link to /usr/bin) to recover a system with disk
> errors (when possible, anyway).  But now that /bin is a link, I wonder if
> the system will even boot properly, since "user space" would have to mount
> /usr before almost all (all?) programs are available.  Including systemd.

Given that RasPiOS has an /sbin directory, I`m pretty sure the machine
will come up at worst in single-user if /usr can`t be mounted normally.
Whether /home/, /var/ and  /tmp/  can be links to /usr is less clear to 
me at this point. 

The original plan would have left the machine with a /root of around
100GB and a /usr of around 800GB so running out of space isn`t a problem. 

> OP, where are you... ?

Busy trying to drink from a firehose 8-) And, thanks to those at the pumps!

bob prohaska


--- PyGate Linux v1.5.13
 * Origin: Dragon`s Lair, PyGate NNTP<>Fido Gate (3:633/10)
SEEN-BY: 19/10 50/109 153/757 218/840 840 220/70
221/1 6 360 226/17 100
SEEN-BY: 229/426 240/1120 267/800 301/1 113 812
310/31 335/364 341/66 463/68
SEEN-BY: 633/10 280 414 416 418 420 422 509 2744
712/848 770/1 3 100 340 350
SEEN-BY: 772/210 220 230 5019/40 5020/715 848 1042
4441 12000 5030/49 722
SEEN-BY: 5030/1081 1474 5053/55 5061/133 5075/128
@PATH: 633/10 280 770/1 218/840 221/6 301/1
5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх