I have noticed that for the Pi on both a 3B+ and a 4B 8GB Ram both using
a HDD and SSD respectively there is no swap partition set up.
Every other Linux system I have does even if the Ram is 16 GB so two questions:
Is there a good reason why it does not get set up ?
What is the best way to set one up.
I have noticed that for the Pi on both a 3B+ and a 4B 8GB Ram
both using a HDD and SSD respectively there is no swap partition
set up.
Huh. I hadn't even noticed. Just checked my own 3B+, and sure enough,
no swap...With what I do with it, it doesn't need a swap. But, as you described later on, you plan to do something very different.
Every other Linux system I have does even if the Ram is 16 GB so
two questions: Is there a good reason why it does not get set up
? What is the best way to set one up.
My first guess would be that this is done to prevent the early death
of the SD card. After all, not that long ago, the SD card was the only
place one could install PiOS. And SD cards wear out quite a bit faster
than a HDD or SSD.
I'm not sure if it's the best way, but *my* way would be to install
gparted (or equivalent), resize the main partition, and build a swap partition. Reboot, 'swapon', and Bob's yer uncle.
For best performance, I would also ensure the swap partition was at
the *front* on a HDD; for a SSD (or SD card), it wouldn't matter.
On Fri, 08 Apr 2022 15:05:11 +1200 nospam.Shaun.Buzza@f110.n229.z1.fidonet.org (Shaun Buzza) wrote:
For best performance, I would also ensure the swap partition was at
the *front* on a HDD; for a SSD (or SD card), it wouldn't matter.
Why ? Putting it dead centre of the tracks would seem to minimise average seek time to the swap area.
On Fri, 08 Apr 2022 18:12:56 +1200 nospam.Shaun.Buzza@f110.n229.z1.fidonet.org (Shaun Buzza) wrote:
Since you brought it up: in the 70s and 80s (and even into the very early
90s), 1 MB of RAM was unimaginable,
The original workstation recipe was 1 MIP, 1 megabyte and 1
megapixel - it's grossly inadequate these days in MIPs and megabytes
although its rare to see the megapixel exceeded by even one order of magnitude (although they tend to be 32 bit pixels now).
On Sun, 10 Apr 2022 10:10:34 +0100, Ahem A Rivet's Shot wrote:
I wasn't trying to suggest that Sellotape was better, it's just
as universal as Cadbury's chocolate here and about as far from being the best.
IIRC Cadbury's used to be pretty good chocolate: I used to like their
Energy Chocolate (very dark colour and not very sweet) until the company
was bought by Kraft in 2010, at which point their products quickly became inedible sweet junk.
Hello All!
I have noticed that for the Pi on both a 3B+ and a 4B 8GB Ram both using a HDD
and SSD respectively there is no swap partition set up.
Others have suggested why the default might be no swap for ther
"standard" SD card run Pi. Alot of replies where off-topic without the courtesy of changing the subject line - sigh.
On 11/04/2022 16:22, scott@alfter.diespammersdie.us wrote:
Ahem A Rivet's Shot <steveo@eircom.net> wrote:Not on a disk with constant sectors per track, it ain't...
On Fri, 08 Apr 2022 15:05:11 +1200
nospam.Shaun.Buzza@f110.n229.z1.fidonet.org (Shaun Buzza) wrote:
For best performance, I would also ensure the swap partition was at the >>>> *front* on a HDD; for a SSD (or SD card), it wouldn't matter.
Why ? Putting it dead centre of the tracks would seem to minimise >>> average seek time to the swap area.
For spinning rust, data transfer rates are usually higher at the beginning >> of the disk than at the end.
On Mon, 11 Apr 2022 16:17:26 GMT
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
And now I walk around with a thumb drive in my
pocket that cost me $1 per gigabyte.
An expensive one then, they're running about 35-40c per gigabyte
now in sizes up 512GB for thumb drives and a bit less for 1Tb drives from reputable suppliers.
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 140:16:02 |
Calls: | 166 |
Files: | 5,389 |
Messages: | 223,236 |