Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

21 May, 2024: Computers section is temporarily disabled for maintenance. It will take several days before it's back.


computers / comp.sys.raspberry-pi / swapoff -a

SubjectAuthor
* swapoff -aF. W.
`* Re: swapoff -aGrailKing
 `* Re: swapoff -aF. W.
  +* Re: swapoff -aalister
  |`* Re: swapoff -aMartin Gregorie
  | `* Re: swapoff -aalister
  |  `- Re: swapoff -aMartin Gregorie
  +- Re: swapoff -adruck
  `- Re: swapoff -aLiam Proven

1
swapoff -a

<t4t4ro$kl5$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5116&group=comp.sys.raspberry-pi#5116

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: me@home.com (F. W.)
Newsgroups: comp.sys.raspberry-pi
Subject: swapoff -a
Date: Wed, 4 May 2022 08:01:27 +0200
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <t4t4ro$kl5$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 4 May 2022 06:01:28 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4d0ee52f9aac83f400f178c86e799fd9";
logging-data="21157"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xzBAEgl2LMaViBoJyq3KX"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Cancel-Lock: sha1:paGo8/vGirMW3okImHEk6FkVjNU=
Content-Language: de-DE
 by: F. W. - Wed, 4 May 2022 06:01 UTC

Did you try swapoff -a on your Raspi 400? Did it work remarkable faster
oder did I suffer from imagination?

FW

Re: swapoff -a

<LKpcK.10567$IQK.6183@fx02.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5117&group=comp.sys.raspberry-pi#5117

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.uzoreto.com!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.iad.POSTED!not-for-mail
From: grailking@invalid.net (GrailKing)
Subject: Re: swapoff -a
Newsgroups: comp.sys.raspberry-pi
References: <t4t4ro$kl5$5@dont-email.me>
MIME-Version: 1.0
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 11
Message-ID: <LKpcK.10567$IQK.6183@fx02.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 04 May 2022 07:15:55 UTC
Date: Wed, 04 May 2022 07:15:55 GMT
X-Received-Bytes: 845
 by: GrailKing - Wed, 4 May 2022 07:15 UTC

On Wed, 4 May 2022 08:01:27 +0200, F. W. wrote:

> Did you try swapoff -a on your Raspi 400? Did it work remarkable faster
> oder did I suffer from imagination?
>
> FW

If you meant me; I did not.

Where would I put that ?

Re: swapoff -a

<t4tnpn$683$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5118&group=comp.sys.raspberry-pi#5118

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: me@home.com (F. W.)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: swapoff -a
Date: Wed, 4 May 2022 13:24:38 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <t4tnpn$683$1@dont-email.me>
References: <t4t4ro$kl5$5@dont-email.me> <LKpcK.10567$IQK.6183@fx02.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 4 May 2022 11:24:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4d0ee52f9aac83f400f178c86e799fd9";
logging-data="6403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185CZUd4ohNUkTFlj37O6wW"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Cancel-Lock: sha1:E8f2Mfyz5xs1go1uC5bHb4K9j8c=
In-Reply-To: <LKpcK.10567$IQK.6183@fx02.iad>
Content-Language: de-DE
 by: F. W. - Wed, 4 May 2022 11:24 UTC

Am 04.05.2022 um 09:15 schrieb GrailKing:
> On Wed, 4 May 2022 08:01:27 +0200, F. W. wrote:
>
>> Did you try swapoff -a on your Raspi 400? Did it work remarkable
>> faster oder did I suffer from imagination?
>>
>> FW
>
> If you meant me; I did not.
>
> Where would I put that ?
>

I meant everybody (who owns a 400).

In a commandline I did sudo swapoff -a and think my 400 is a little bit
faster. Can be that my SD-card is very slow.

FW

Re: swapoff -a

<t4ufqt$12a9$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5120&group=comp.sys.raspberry-pi#5120

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!0BUoxIKeUVSm8bQj8XmtkA.user.46.165.242.75.POSTED!not-for-mail
From: alister.ware@ntlworld.com (alister)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: swapoff -a
Date: Wed, 4 May 2022 18:14:53 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t4ufqt$12a9$1@gioia.aioe.org>
References: <t4t4ro$kl5$5@dont-email.me> <LKpcK.10567$IQK.6183@fx02.iad>
<t4tnpn$683$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="35145"; posting-host="0BUoxIKeUVSm8bQj8XmtkA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
X-Notice: Filtered by postfilter v. 0.9.2
 by: alister - Wed, 4 May 2022 18:14 UTC

On Wed, 4 May 2022 13:24:38 +0200, F. W. wrote:

> Am 04.05.2022 um 09:15 schrieb GrailKing:
>> On Wed, 4 May 2022 08:01:27 +0200, F. W. wrote:
>>
>>> Did you try swapoff -a on your Raspi 400? Did it work remarkable
>>> faster oder did I suffer from imagination?
>>>
>>> FW
>>
>> If you meant me; I did not.
>>
>> Where would I put that ?
>>
>>
> I meant everybody (who owns a 400).
>
> In a commandline I did sudo swapoff -a and think my 400 is a little bit
> faster. Can be that my SD-card is very slow.
>
> FW

try
Free -h so see how much memory is used
the amount of swap used on any of mi Pi's is negligible. my deductions
from this are:
If it is not being used then it cant be slowing the system down.
It is probably not needed anyway.

this will probably vary depending on your own usage patterns

--
Repel them. Repel them. Induce them to relinquish the spheroid.
-- Indiana University football cheer

Re: swapoff -a

<t4uqs7$n9o$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5121&group=comp.sys.raspberry-pi#5121

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: swapoff -a
Date: Wed, 4 May 2022 21:23:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <t4uqs7$n9o$1@dont-email.me>
References: <t4t4ro$kl5$5@dont-email.me> <LKpcK.10567$IQK.6183@fx02.iad>
<t4tnpn$683$1@dont-email.me> <t4ufqt$12a9$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 4 May 2022 21:23:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ff81168b1813362d676ba6f934f14cfc";
logging-data="23864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19y4hB2CduB5iN6fhREgx1N/NWjyd+1fx8="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:UaYhXEXNIaOmvRdvGJzhiwL4fcw=
 by: Martin Gregorie - Wed, 4 May 2022 21:23 UTC

On Wed, 4 May 2022 18:14:53 -0000 (UTC), alister wrote:

>
> try Free -h so see how much memory is used the amount of swap used on
>
You can also see this information on the 'top' display along with other
useful stuff about what process(es) are hogging memory and/or CPU time and
how much memory is being occupied by file buffering (often more than is
occupied by executable code).

--
--
Martin | martin at
Gregorie | gregorie dot org

Re: swapoff -a

<t502ag$1cf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5123&group=comp.sys.raspberry-pi#5123

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: swapoff -a
Date: Thu, 5 May 2022 09:36:31 +0100
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <t502ag$1cf$1@dont-email.me>
References: <t4t4ro$kl5$5@dont-email.me> <LKpcK.10567$IQK.6183@fx02.iad>
<t4tnpn$683$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 5 May 2022 08:36:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="94303219f30467737a854cb98791f650";
logging-data="1423"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wDfKqdE3oP9lmOFbb8kHN"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Cancel-Lock: sha1:AGqY/E7l/Ep5hk4uX+vko6XP5W0=
In-Reply-To: <t4tnpn$683$1@dont-email.me>
Content-Language: en-GB
 by: druck - Thu, 5 May 2022 08:36 UTC

On 04/05/2022 12:24, F. W. wrote:
> In a commandline I did sudo swapoff -a and think my 400 is a little bit
> faster. Can be that my SD-card is very slow.

If you aren't using much memory, it wont be any faster. If you are using
too much memory swapping to an SD card will cause it to run very slowly,
but not having any swap will cause it to hang while it attempts to kill
off processes, or if you are unlucky hang altogether.

---druck

Re: swapoff -a

<t5053u$mco$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5124&group=comp.sys.raspberry-pi#5124

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lproven+es@gmail.com (Liam Proven)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: swapoff -a
Date: Thu, 5 May 2022 11:24:14 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <t5053u$mco$1@dont-email.me>
References: <t4t4ro$kl5$5@dont-email.me> <LKpcK.10567$IQK.6183@fx02.iad>
<t4tnpn$683$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 5 May 2022 09:24:14 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="43e8b85fe37b2202825dc1dd885a8659";
logging-data="22936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/er9iyaMcWydrXrEgwCNRF"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.1
Cancel-Lock: sha1:l6YWlOrlM9/vjerXSPwgqd795AY=
In-Reply-To: <t4tnpn$683$1@dont-email.me>
Content-Language: en-GB
 by: Liam Proven - Thu, 5 May 2022 09:24 UTC

On 04/05/2022 13:24, F. W. wrote:
>
> I meant everybody (who owns a 400).
>
> In a commandline I did sudo swapoff -a and think my 400 is a little bit
> faster. Can be that my SD-card is very slow.

SD cards are quite slow, yes. If you need a lot of swap, then swap to a
faster device. I used to have swap on a ZFS RAIDZ array spread across 4
× 2TB USB3 drives on a USB3 hub, and it seemed pretty fast to me.

On my older Pi 3 or Pi 3B, I configured ZRAM for in-memory compressed
swap, which is what Ubuntu is now doing by default in version 22.04 for
the Pi. I was doing it in 14.04 and it worked pretty well: Lubuntu with
LXDE and ZRAM was quite snappy for such a low-end machine.

But as druck says: just turning it off completely is not a good move and
will have negative side-effects.

A small USB3 SSD will only cost about as much as a 4 or 8GB Pi 4 itself
and will substantially improve performance. If you don't want to
experiment with USB booting, you can leave your /boot partition on the
SD card, and just put the root and swap partitions on the USB3 drive.

--
Liam Proven ~ Prague, Czechia
lproven+es@hotmail.com
(or liamproven on either AOL or Yahoo UK)

Re: swapoff -a

<t5164k$h5h$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5127&group=comp.sys.raspberry-pi#5127

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!0BUoxIKeUVSm8bQj8XmtkA.user.46.165.242.75.POSTED!not-for-mail
From: alister.ware@ntlworld.com (alister)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: swapoff -a
Date: Thu, 5 May 2022 18:47:48 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t5164k$h5h$1@gioia.aioe.org>
References: <t4t4ro$kl5$5@dont-email.me> <LKpcK.10567$IQK.6183@fx02.iad>
<t4tnpn$683$1@dont-email.me> <t4ufqt$12a9$1@gioia.aioe.org>
<t4uqs7$n9o$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="17585"; posting-host="0BUoxIKeUVSm8bQj8XmtkA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
X-Notice: Filtered by postfilter v. 0.9.2
 by: alister - Thu, 5 May 2022 18:47 UTC

On Wed, 4 May 2022 21:23:19 -0000 (UTC), Martin Gregorie wrote:

> On Wed, 4 May 2022 18:14:53 -0000 (UTC), alister wrote:
>
>
>> try Free -h so see how much memory is used the amount of swap used on
>>
> You can also see this information on the 'top' display along with other
> useful stuff about what process(es) are hogging memory and/or CPU time
> and how much memory is being occupied by file buffering (often more than
> is occupied by executable code).

Linux is designed to use spare memory as buffers whenever possible,
it is released if it is needed for other purposes.

--
Using TSO is like kicking a dead whale down the beach.
-- S. C. Johnson

Re: swapoff -a

<t51bog$tej$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5128&group=comp.sys.raspberry-pi#5128

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: martin@mydomain.invalid (Martin Gregorie)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: swapoff -a
Date: Thu, 5 May 2022 20:23:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <t51bog$tej$1@dont-email.me>
References: <t4t4ro$kl5$5@dont-email.me> <LKpcK.10567$IQK.6183@fx02.iad>
<t4tnpn$683$1@dont-email.me> <t4ufqt$12a9$1@gioia.aioe.org>
<t4uqs7$n9o$1@dont-email.me> <t5164k$h5h$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 5 May 2022 20:23:44 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b3fbe2e0ad46cba0f17edd57894d9dac";
logging-data="30163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QE/Baw0zuzypUwIIKIE4JuU7Ufj8S74k="
User-Agent: Pan/0.149 (Bellevue; 4c157ba git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:0iNQBz4LAAb4Q+jbVPhDUntUGyI=
 by: Martin Gregorie - Thu, 5 May 2022 20:23 UTC

On Thu, 5 May 2022 18:47:48 -0000 (UTC), alister wrote:

> On Wed, 4 May 2022 21:23:19 -0000 (UTC), Martin Gregorie wrote:
>
>> On Wed, 4 May 2022 18:14:53 -0000 (UTC), alister wrote:
>>
>>
>>> try Free -h so see how much memory is used the amount of swap used on
>>>
>> You can also see this information on the 'top' display along with other
>> useful stuff about what process(es) are hogging memory and/or CPU time
>> and how much memory is being occupied by file buffering (often more
>> than is occupied by executable code).
>
> Linux is designed to use spare memory as buffers whenever possible,
> it is released if it is needed for other purposes.

Of course: I thought that was worth pointing out because it can be a
surprise to a Linux newbie. Its also where the speed comes from, and is
particularly noticeable when writing code in C or Java on a slowish
machine with a decent amount of RAM, say an i5-based laptop with 8GB RAM.

The first compilation in a code writing session can be very much faster
than subsequent recompiles because the first one needs to load make, the C
compiler and linker (or the JVM, ant and the Java compiler) as well as the
source code, while subsequent compiler runs will be anything up to 400%
faster because the compiler chain binaries and the source files you're
working on will still be in RAM from the previous compilation run.

I've timed it for Java: one fairly large project (a duty roster building
visual application for a sport club took noticeably longer for the first
compilation of the day. I got intriqued, so I measured it to be sure it
wasn't a subjective effect by running the compilation under 'time'. It was
real: the first compilation of the day took 4 seconds and subsequent
compilations took less than a second.

That said, I don't see the same speedup effect on any Pi I use, but I
don't have a Pi 4, but I would expect to see it on a Pi 4 that is maxed-
out on RAM.

--
--
Martin | martin at
Gregorie | gregorie dot org


computers / comp.sys.raspberry-pi / swapoff -a

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor