Swap partition?

VC> I have noticed that for the Pi on both a 3B+ and a 4B 8GB Ram both using VC> 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.

VC> Every other Linux system I have does even if the Ram is 16 GB so two VC> questions: VC> Is there a good reason why it does not get set up ? VC> 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.

McDoob SysOp, PiBBS pibbs.sytes.net

... What does it mean to pre-board? Do you get on before you get on?

Reply to
Shaun Buzza
Loading thread data ...

VC> Yes that is the way to go - it is just why on earth that do not provide VC> it.

I gave you one (possible) reason already.

VC> I must admit it is a first and only instance of this - I have NEVER seen VC> this else where and that includes many, many installs even for *nix's VC> including Cromix going back to the late 70's and early 80's.

I have to agree. I was quite surprised when I realized that I had no swap partition, as well. But, I don't need one, either.

Since you brought it up: in the 70s and 80s (and even into the very early 90s),

1 MB of RAM was unimaginable, and 1 GB was absolutely impossible. Swap space was almost a requirement, given that limitation...but that limitation no longer exists...

VC> Suppose that's what happens when non professions build distro's without VC> reading the manuals.

Don't be like that, man. I am truly bone-tired of dealing with people who insist on being as negative as possible.

So the Pi Foundation didn't include a swap partition. That makes them 'unprofessional'? You're the same every time you leave the house without SCUBA gear, then! Who knows, someone might want to go diving, you unprofessional so-and-so!

Sorry for ranting a little, just then. As I said, I've passed my limit of negativity for this week.

McDoob SysOp, PiBBS pibbs.sytes.net

... Error, no Keyboard - Press F1 to Continue.

Reply to
Shaun Buzza

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.

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.

While the 8Gb may not get over committed the 3 easily can and I want to runs some real applications on both (uses a terminal app built with Cobol and C) as well as a bbs system..

This will act as a special service to maintain Echo areas for various network and issue at the start of month various reports and files and these are sent out.

With this lot running, it might well need to swap out ram to HDD during processing.

Needles to say, I will be checking this 'assumption' to verify one way or another but I do not like to not have a swap space declared even if it is only

2 - 4 Gb.

Vincent

Reply to
Vincent Coen

Hello Shaun!

Friday April 08 2022 15:05, you wrote to me:

VC>> I have noticed that for the Pi on both a 3B+ and a 4B 8GB Ram VC>> both using a HDD and SSD respectively there is no swap partition VC>> set up.

VC>> Every other Linux system I have does even if the Ram is 16 GB so VC>> two questions: Is there a good reason why it does not get set up VC>> ? What is the best way to set one up.

Yes that is the way to go - it is just why on earth that do not provide it.

I must admit it is a first and only instance of this - I have NEVER seen this else where and that includes many, many installs even for *nix's including Cromix going back to the late 70's and early 80's.

Suppose that's what happens when non professions build distro's without reading the manuals.

Vincent

Reply to
Vincent Coen

Hello Ahem!

Friday April 08 2022 20:50, you wrote to Shaun Buzza:

For a mainframe easy but for a micro using any O/S almost impossible - they is not the control to do so with out being VERY specific what cylinders / sectors to use and that means knowing exacting the size of the drive and the use of a calculator :)

This does not apply to a SSD as Seek, Acces and transfer times are the same from the beginning to the end of the SSD.

Vincent

Reply to
Vincent Coen

Why ? Putting it dead centre of the tracks would seem to minimise average seek time to the swap area.

Reply to
Ahem A Rivet's Shot

That's because Raspbian is setup to use a swap file, see my post of a few minutes ago.

---druck

Reply to
druck

As most users install to an SD card, I guess they'd usually rather just run out of RAM than wear out their card by constantly writing to it.

Resize the partitions and add a new one, then run mkswap on it. It will probably be automatically detected and enabled by Linux at boot. Or you can use a swap file.

If you were running on an SD card though, I'd suggest looking at compressed swap in RAM, paradoxical as the scheme may sound.

Reply to
Computer Nerd Kev

At the other extreme, when I worked on super computers there was no swap space. The compute nodes had no disks - only ram. If you tried to swap your configuration was wrong. The job failed and you fixed it. To get to disk storage you had to go over the interconnect to a storage server. You only did this to load the programs and store the final results. If you were swapping your performance would not be "super" :-).

Reply to
Dennis

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).

Reply to
Ahem A Rivet's Shot

Hello Hermann!

Saturday April 09 2022 14:59, you wrote to All:

On my systems it is the first one to be defined and mounted in fstab

Vincent

Reply to
Vincent Coen

Hello Ahem!

Saturday April 09 2022 21:43, you wrote to Charlie Gibbs:

Here in England I just opened one of my desk drawers to find : Scotch Magic 810 33 m x 19 mm - Invisable Permanent write on it or Type on it. Magic Transparent Tape # 810 1A 33 m x 19 mm.

Correct, not used a lot as these are well over 30 years old, may be over 40.

Now if I look in my don't know if I still want it cupboard I can see some magnetic tape reels 10.5", cassette mag tapes and even deep down a cuople of

8 track tapes all unused and yep all Scotch but I also have some other brands of Professional record tapes.

Am I likely to use any them - Err nope as I sold off most if not all of the tape drives / tape recorders etc ranging in size from 0.25, .5, 1 and 2" widths and there is a few of computer tapes also still in their boxes along with some DLT's, Mini-Disks just so they are not lonely.

One day, must deal with them :)

Vincent

Reply to
Vincent Coen

Am 08.04.22 um 22:34 schrieb druck:

If I have a swap partition in an USB HDD which swap ist used? the swap file on SD or the swap partition on hdd?

Exist suspend to disk for raspberry pi?

Reply to
Hermann Riemann

I heard such machines referred to as "3M". This was presumably a play on the name of the Minnesota Mining and Manufacturing Company, the creators of Scotch Tape [tm]. (Their name was much better known in those days.)

Reply to
Charlie Gibbs

The 3M name is still well known and is to be found proudly emblazoned on the protective film over pretty much every self-adhesive thing that actually sticks and stays stuck, many people have noticed this and worry if they don't see it (Gorilla is good too but much newer and still building trust).

On this side of the pond Scotch tape is almost unheard of because of Sellotape.

Reply to
Ahem A Rivet's Shot

Most rolls of Sellotape eventually go manky, but I've never known Scotch tape do that.

Reply to
Andy Burns

UK: heard of it, and +1 ...

Sellotape [TM] or Sellotape (as in generic knockoffs) either turns to sticky mush on a roll (not useful) or looses adhesion and becomes a roll of clear plastic with powdery bits shedding off as it unreels all over the floor ... neither useful long term. Definite limited shelf-life.

That's before you get to *using* it and having it turn a funny colour and discolour any paper you stuck it to.

Scotch "Magic" tape doesn't die on the roll, or discolour in use, so for paper-repair tasks etc. is much better. I don't know what (the proper stuff) conservators use, but Magic tape is good enough for me!

Reply to
Mike

TBH I never use either, but I see Sellotape pretty much everywhere tape is sold unless the only option is nameless junk and I rarely see Scotch tape on sale.

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.

Reply to
Ahem A Rivet's Shot

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.

Reply to
Martin Gregorie

It's never been good by Dutch/Belgian/Swiss[n] or even German standards ...

... but yeah it used to be a lot better than it is now.

[n] OK ok Nestle ... very sad.
Reply to
Ahem A Rivet's Shot

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.