Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #262035

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

From gene heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject Re: swap-fle on arm64, need to disable, how?
Date 2023-10-01 10:40 +0200
Message-ID <Hk09z-cLph-3@gated-at.bofh.it> (permalink)
References <HjrbP-cpWt-11@gated-at.bofh.it> <HjLWV-cCBi-1@gated-at.bofh.it> <HjQMV-cFvR-1@gated-at.bofh.it> <HjVjz-cIoi-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 9/30/23 23:22, hw wrote:
> On Sat, 2023-09-30 at 18:29 -0400, gene heskett wrote:
>> On 9/30/23 13:28, Matthias Böttcher wrote:
>>> sudo dphys-swapfile swapoff
>>> sudo systemctl stop dphys-swapfile.service
>>> sudo systemctl disable dphys-swapfile.service
>>>
>>> .
>> However that did give me a clue about getting rid of zram0, which has
>> been done now, thank you. Now I hope to uncomment the SSD line in fstab.
> 
> Well, zram is the way to go; why would you still use swap partitions
> or swap files instead?  Are you deliberately trying to wear out your
> SSDs or to slow down your computer?
> 
zram is probably the way to go for board with lots of dram. Something 
the pi's don't have. My only pi is an early rpi4b, Claims 2G, shows 
1.8G. I tend to do big things with it. I was first on this ball of rock 
and water to make linuxcnc and that pi, run an 80 yo lathe I converted 
to cnc controls. Teaching that lathe tricks it could not do when it 
shipped out out Chicago circa 1946.

To steal over a gig for zram style swap does not make any sense to me. 
There's compression and decompression involved too I'm told. By putting 
swap on a 10G partition on a 500meg a second SSD, brings big memory into 
the picture, allowing that little card to do big things without running 
out of memory. I've built its own realtime kernels on it is 23 minutes, 
linuxcnc with its docs including some translations ran it 200megs into 
that zram and took nearly 4 hours.  With real swap back on buster, just 
under an hour. Just the English docs are now over 1000 pages of dead 
tree. What we really need are translators. Except for the de stuff, 
other languages are quite incomplete, but this old Iowa farm kid doesn't 
speak anything but English, and doesn't even touch type.

I'm not a "working shop" other than my own product, just a retired bc 
engineer. I basically serve as the canary in the coal mine for linuxcnc, 
keeping that pi up to date with the git master & looking for 
showstoppers. This gets done several times a week, doing a decent job of 
keeping me out of the bars.

> Fedora has it by default since a while, and at first I thought it's a
> very stupid idea.  In practise, I can't be bothered anymore to create
> these annoying swap partitions.  They're only a waste of disc space.
> There haven't been any issues with it, and when the machine runs out
> of memory, using swap partitions or swap files isn't going to fix
> that.

But with zram  taking over half its memory, its into swap and slowing 
down quicker, and plumb out of memory for big jobs, when it could still 
be working fine with bigger, albeit probably slower than zram, swap.

I've no clue how much the zram compression slows it in terms of thru put.

I wiped out the git clone of linuxcnc by re-arranging that SSD 
yesterday, but I'll do another build later today and see how long it 
takes with real swap.

Thank you. Take care & stay well.
> 
> .

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/>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-09-29 21:20 +0200
  Re: swap-fle on arm64, need to disable, how? Andy Smith <andy@strugglers.net> - 2023-09-29 21:30 +0200
    Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-09-29 22:40 +0200
      Re: swap-fle on arm64, need to disable, how? Andy Smith <andy@strugglers.net> - 2023-09-29 23:40 +0200
        Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-09-30 09:30 +0200
          Re: swap-fle on arm64, need to disable, how? Andy Smith <andy@strugglers.net> - 2023-09-30 13:50 +0200
            Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-09-30 17:20 +0200
              Re: swap-fle on arm64, need to disable, how? Andy Smith <andy@strugglers.net> - 2023-09-30 22:20 +0200
                Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 02:30 +0200
                Re: swap-fle on arm64, need to disable, how? Curt <curty@free.fr> - 2023-10-01 17:10 +0200
                Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 19:00 +0200
          Re: swap-fle on arm64, need to disable, how? David Wright <deblis@lionunicorn.co.uk> - 2023-09-30 20:20 +0200
      Re: swap-fle on arm64, need to disable, how? Max Nikulin <manikulin@gmail.com> - 2023-09-30 03:30 +0200
  Re: swap-fle on arm64, need to disable, how? Matthias Böttcher <matthias.boettcher@gmail.com> - 2023-09-30 19:30 +0200
    Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-09-30 20:00 +0200
      Re: swap-fle on arm64, need to disable, how? Greg Wooledge <greg@wooledge.org> - 2023-09-30 20:20 +0200
        Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 01:50 +0200
        Re: swap-fle on arm64, need to disable, how? Max Nikulin <manikulin@gmail.com> - 2023-10-01 10:20 +0200
      Re: swap-fle on arm64, need to disable, how? Matthias Böttcher <matthias.boettcher@gmail.com> - 2023-09-30 21:30 +0200
    Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 00:40 +0200
      Re: swap-fle on arm64, need to disable, how? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-10-01 04:30 +0200
      Re: swap-fle on arm64, need to disable, how? hw <hw@adminart.net> - 2023-10-01 05:30 +0200
        Re: swap-fle on arm64, need to disable, how? Max Nikulin <manikulin@gmail.com> - 2023-10-01 10:10 +0200
          Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 11:10 +0200
            Re: swap-fle on arm64, need to disable, how? Greg Wooledge <greg@wooledge.org> - 2023-10-01 15:00 +0200
              Re: swap-fle on arm64, need to disable, how? "Andrew M.A. Cater" <amacater@einval.com> - 2023-10-01 15:40 +0200
                Re: swap-fle on arm64, need to disable, how? David Wright <deblis@lionunicorn.co.uk> - 2023-10-01 17:40 +0200
                Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 19:00 +0200
              Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 18:50 +0200
                Re: swap-fle on arm64, need to disable, how? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-10-01 20:10 +0200
                Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 21:20 +0200
                Re: swap-fle on arm64, need to disable, how? Stefan Monnier <monnier@iro.umontreal.ca> - 2023-10-02 00:50 +0200
                Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-04 10:10 +0200
        Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-01 10:40 +0200
          Re: swap-fle on arm64, need to disable, how? David Wright <deblis@lionunicorn.co.uk> - 2023-10-01 17:40 +0200
          Re: swap-fle on arm64, need to disable, how? hw <hw@adminart.net> - 2023-10-01 22:10 +0200
            Re: swap-fle on arm64, need to disable, how? gene heskett <gheskett@shentel.net> - 2023-10-02 02:00 +0200
            Re: swap-fle on arm64, need to disable, how? Max Nikulin <manikulin@gmail.com> - 2023-10-03 04:40 +0200

csiph-web