SWAP == 0 [GELÖST]
Re: SWAP == 0
Nachtrag:
Die Anzeige des Arbeitsspeichers ist mir auch nicht verständlich...
Irgendwie stimmt beides nicht. Der Server hat 64 GB Ram.
Diese Kommawerte sind bei Ram (Gesamt) nicht wirklich zielführend
Dezimal 1 KB == 1000 Byte Binär 1 KB == 1024 Byte
Die Anzeige des Arbeitsspeichers ist mir auch nicht verständlich...
Irgendwie stimmt beides nicht. Der Server hat 64 GB Ram.
Diese Kommawerte sind bei Ram (Gesamt) nicht wirklich zielführend
Dezimal 1 KB == 1000 Byte Binär 1 KB == 1024 Byte
Gruß,
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: SWAP == 0 [GELÖST]
-> Erledigt.
Sag das den Speicher-Herstellern. Die Werte gehen doch nie auf. Hab in meinem Arbeitsrechner 32 GB (laut Hersteller).
Tatsächlich sind es 33.58 GB bzw. 31,28 GiB.
Kannst du gern selbst überprüfen mittels:
Code: Select all
free -b
Gesamt = Spalte 1
Frei = Spalte 3 + 5
Belegt = Gesamt - Frei
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: SWAP == 0
Danke!
Ich dachte mir schon, dass sowas der Grund sein wird. Aber wie wäre es denn wenn du an dieser Stelle einfach mit den Standardwerten rechnest / rundest? Selbst deine 31,XY machen nicht wirklich Sinn, da ich noch nie halbe Megabytes auf einem Ram Riegel gesehen habe .
Oder ganz pragmatisch...
In den Einstellungen, dort wo man KB / kiB umschaltet, bei "Maßeinheiten", dort kann der Admin selbst eintragen wieviel RAM die Kiste hat.
So richtig LOWLEVEL halt
Gruß,
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: SWAP == 0
Code: Select all
free -m
Gruß,
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: SWAP == 0
Das wäre aber nicht korrekt gerundet: "free -m" gibt dir die Ausgabe in MiB also zur Basis 1024, was, wenn man es dann in GiB umrechnet (also durch 1024), 62,81 GiB (gerundet 63 GiB) ergibt.Tobi wrote: ↑Fri 18. Nov 2022, 15:51ergibt bei mir "64318" und würde dann gerundet mit "64 GB" passen.Code: Select all
free -m
Kannst dir ja gern mit der White-Label Funktion dort anzeigen lassen, was auch immer du möchtest .
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: SWAP == 0
Bei Server zwei kommt "64259" als Ergebnis.
Mit "gerundet" meinte ich in diesem Fall "auf die ersten zwei Stellen abgeschnitten"
Mit "gerundet" meinte ich in diesem Fall "auf die ersten zwei Stellen abgeschnitten"
Gruß,
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: SWAP == 0
... aber das funktioniert ja nicht, wenn "free -m" die Basis 1024 hat . Wenn es die Basis 1000 hätte, ja, aber so summiert sich das.
Beispiel: 128.000 MiB == 125 GiB und nicht 128 GiB.
(Aus diesem Grund lieber mit free -b schauen und dann in ein Zahlenformat seiner Wahl umwandeln)
Beispiel: 128.000 MiB == 125 GiB und nicht 128 GiB.
(Aus diesem Grund lieber mit free -b schauen und dann in ein Zahlenformat seiner Wahl umwandeln)
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
- BasHeijermans
- KeyHelp Translator
- Posts: 159
- Joined: Mon 20. Jun 2022, 12:01
- Location: Heppen Belgium
- Contact:
Re: SWAP == 0
Sorry, I do not agree. As swapping doesn't need a partition anymore for it to work.
It can also swap to file if no partition exists.
https://itsfoss.com/create-swap-file-linux/
Ergo it's basically impossible to know if swap is turned off in total. It will and can swap with and without a partition.
Greetings Bas.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Re: SWAP == 0
BasHeijermans wrote: ↑Mon 21. Nov 2022, 16:52 Ergo it's basically impossible to know if swap is turned off in total.
Code: Select all
─➤ free|grep -i swap 1 ↵
Swap: 16777212 157976 16619236
╰─➤ grep -i swapf /etc/fstab
/swapfile swap swap defaults 0 0
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
- BasHeijermans
- KeyHelp Translator
- Posts: 159
- Joined: Mon 20. Jun 2022, 12:01
- Location: Heppen Belgium
- Contact:
Re: SWAP == 0
Point taken, but why would anybody turn off swap in total, makes no sense to do that.
It's the last resort to keep your system from crashing when it runs out of ram.
I would never want to run Linux without swapping, never ever.
Greetings Bas.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Re: SWAP == 0
It was, years ago, before oomd. https://www.freedesktop.org/software/sy ... rvice.htmlBasHeijermans wrote: ↑Mon 21. Nov 2022, 17:13Point taken, but why would anybody turn off swap in total, makes no sense to do that.
It's the last resort to keep your system from crashing when it runs out of ram.
You don't have to. I don't do it either, on most of my machines.BasHeijermans wrote: ↑Mon 21. Nov 2022, 17:13 I would never want to run Linux without swapping, never ever.
But it's not uncommon in current vServers, which might run Keyhelp.
This is a cheap (~2 €) vServer, there I don't even use a swapfile.
Code: Select all
# free
total used free shared buff/cache available
Mem: 2030464 756912 104504 10412 1169048 1230488
Swap: 0 0 0
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
- BasHeijermans
- KeyHelp Translator
- Posts: 159
- Joined: Mon 20. Jun 2022, 12:01
- Location: Heppen Belgium
- Contact:
Re: SWAP == 0
I agree.
I run a VPS too, with 2GB and 40GB diskspace, works very good.
Yet I do not remove the swap.
As diskspace is not an ussue:
A bit of swapping when needed is not an issue.
We run about 4 domain on it, private use on not heavy traffic.
However, I still do not see the point to bother Alex over this, as a normal hosting-server using KeyHelp will not and should not turn off swapping.
For me this is a nonsense issue to be taken seriously.
I run a VPS too, with 2GB and 40GB diskspace, works very good.
Yet I do not remove the swap.
Code: Select all
total used free shared buff/cache available
Mem: 2097152 740984 953816 32508 402352 1323652
Swap: 0 0 0
Code: Select all
Bestandssysteem Grootte Gebruikt Besch Geb% Aangekoppeld op
/dev/ploop18368p1 50G 7,2G 41G 16% /
We run about 4 domain on it, private use on not heavy traffic.
However, I still do not see the point to bother Alex over this, as a normal hosting-server using KeyHelp will not and should not turn off swapping.
For me this is a nonsense issue to be taken seriously.
Greetings Bas.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Re: SWAP == 0
My example was from a NetCup VPS. Per default no swap.BasHeijermans wrote: ↑Mon 21. Nov 2022, 18:23 However, I still do not see the point to bother Alex over this, as a normal hosting-server using KeyHelp will not and should not turn off swapping.
Same for one customer's machine, hosted in Hamburg at ArtFiles.
No swap.
For Alex that would be no more than a finger exercise to remove the display if no swap is present.
oomd is making a good job, and there are many myths around about using swap on a SSD.
My server@home has got the system on a mdadm Raid0 on SSD. With a swapfile on it.
No issues for 8 years.
Last week I replaced them, not because they were broken, but because I got 2 120GB SSD for ~30€ from Amazon.
They are just faster these days.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
- BasHeijermans
- KeyHelp Translator
- Posts: 159
- Joined: Mon 20. Jun 2022, 12:01
- Location: Heppen Belgium
- Contact:
Re: SWAP == 0
Raid 0 is not something I would ever use.
I have used RAID 5, 6, 0+10, 10+0 and all variants.
Never ever again.
Lost too many data over the years, when that happens and a backup failed, you never use raid other then RAID1.
Oomd is rubbish, I do not use it. It can kill mysql and then you loose KeyHelp.
Sorry, I rather have a bit of swapping then oomd.
You use your way, I use mine, but oomd is not something I want to use.
SSD's do not die after 10 years, they often last longer. I still have an Intel 40GB, one of the first, it's still fine, no problem at all.
I use 500GB SSD's for my servers and they have a lot of traffic, no issue what so ever, the eldest is about 6 years old.
3D-SSD's last even longer. I use a few harddisks as old-fashion backups, but never needed them, so far.
I have used RAID 5, 6, 0+10, 10+0 and all variants.
Never ever again.
Lost too many data over the years, when that happens and a backup failed, you never use raid other then RAID1.
Oomd is rubbish, I do not use it. It can kill mysql and then you loose KeyHelp.
Sorry, I rather have a bit of swapping then oomd.
You use your way, I use mine, but oomd is not something I want to use.
SSD's do not die after 10 years, they often last longer. I still have an Intel 40GB, one of the first, it's still fine, no problem at all.
I use 500GB SSD's for my servers and they have a lot of traffic, no issue what so ever, the eldest is about 6 years old.
3D-SSD's last even longer. I use a few harddisks as old-fashion backups, but never needed them, so far.
Greetings Bas.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.