[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: swap-fle on arm64, need to disable, how?



On 9/30/23 16:15, Andy Smith wrote:
Hello,

On Sat, Sep 30, 2023 at 11:15:18AM -0400, gene heskett wrote:
On 9/30/23 07:46, Andy Smith wrote:
On Sat, Sep 30, 2023 at 03:26:19AM -0400, gene heskett wrote:
On 9/29/23 17:32, Andy Smith wrote:
On Fri, Sep 29, 2023 at 04:36:04PM -0400, gene heskett wrote:
Swap file is the last thing I want, much slower than a swap partition.

There has been no performance difference between swap files and
swap partitions for more than a decade.

Maybe on wintel stuff, but the u-sd card the pi runs on has a write speed
below 10 megs/second, an extremely obvious performance hit, and wearing out
the u-sd card rapidly.

Please show evidence or retract your claim that on a raspberry pi a
swap partition performs better than a swap file (when they are both
on the same storage device). I believe you are making it up, as it
isn't the case in the kernel code and should not make any difference
by architecture.

There is a huge difference in the write speeds between a modern SSD that can
be written at usb3 speeds, and the write speed of a micro-sd card the pi
boots from.

This is a real world fact Andy C. Tested, verified FACT.

This has become very silly now, or maybe tragic is a more suitable
description. All you have to do is look back at what you have
actually written as quoted above, or in the archives of this thread.

Except where I've paraphrased in [], the following are actual
verbatim words typed by you and I here in this thread on this list.

You said: I have SSD's for swap on an rpi4b, so to lessen the abuse
           of the u-sd card I need to turn off the swap file, and
           swapon -a the SSD stuff.

I said: If the swap file is listed in [your fstab], remove it and
         add one that's on your SSD.

You replied: Swap file is the last thing I want, much slower than a
              swap partition.

No one, at any point, told you to put a swap file on an SD card. No
one, at any point, said that SD cards perform the same as SSDs.

What you have said above is that swap files are slower than swap
partitions. When corrected on this, you start saying that SD cards
are slower than SSDs, which is not a claim that anyone has disputed,
nor would anyone sensibly dispute it.

I'm surprised that you do not consider it odd that you find yourself
having to explain to someone that SD cards are slower than SSDs, and
that you do not question why that has happened. I personally am
finding it alarming that I'm having to point out to someone what
words they used two emails back in the same thread. I'm starting to
feel like neither of us are having a good time and we should stop.

Testimony from one of the maintainers of the memory management and
ext filesystems in the Linux kernel:

      https://lkml.org/lkml/2005/6/29/11
      https://lkml.org/lkml/2005/7/7/326

TL,DR, my experience is a fact.

You're having arguments about things that have never been claimed;
I'm having arguments about things you don't even remember writing,
and refuse to read again to refresh your memory. I'm genuinely sorry
to see it has got to this stage and I think it's best if I leave
this particular debate there.

I don't know what to do any more when you post misinformation to the
list. If we're now at a stage where you can't be conversed with
because you don't remember what you've posted even a few emails ago
and won't read back your own emails, it's not possible to convince
you of your error. But on the other hand, it often hasn't been
possible to convince you of your errors on many topics for many
years, so I suppose that can't be and should never have been the
goal. I think perhaps best to just try my best to not enter into any
debate.

Thanks,
Andy

Andy, with good luck, you may make to your 89th birthday, which with good luck I'll celebrate next Wednesday. I certainly hope you do. By then you will not see any humor in trying to remember what, if anything, you had for breakfast this morning. I seem to have reached that point. And I'm not any happier for it either.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>


Reply to: