• weird swap device name

    From Nikos Vassiliadis@nvass@gmx.com to muc.lists.freebsd.stable on Wed Jan 14 12:47:29 2026
    From Newsgroup: muc.lists.freebsd.stable

    Hi,

    Just noticed that swapinfo reports this:

    root@aurora:~ # swapinfo
    Device 1K-blocks Used Avail Capacity
    /dev/#C:0x101 10485760 0 10485760 0%
    root@aurora:~ #

    I am not sure what happened. I might have added some temporary
    swap at some point. It cannot be removed. Any thoughts?




    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Ronald Klop@ronald-lists@klop.ws to muc.lists.freebsd.stable on Wed Jan 14 17:37:23 2026
    From Newsgroup: muc.lists.freebsd.stable

    ------=_Part_227090_494372632.1768408643366
    Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit

    Van: Nikos Vassiliadis <nvass@gmx.com>
    Datum: 14 januari 2026 11:48
    Aan: freebsd-stable@FreeBSD.org
    Onderwerp: weird swap device name



    Hi,

    Just noticed that swapinfo reports this:

    root@aurora:~ # swapinfo
    Device 1K-blocks Used Avail Capacity
    /dev/#C:0x101 10485760 0 10485760 0%
    root@aurora:~ #

    I am not sure what happened. I might have added some temporary
    swap at some point. It cannot be removed. Any thoughts?










    I would reboot and see if it is better then.

    Regards,
    Ronald.

    ------=_Part_227090_494372632.1768408643366
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <html><head></head><body><br><p><small><strong>Van:</strong> Nikos Vassiliadis &lt;nvass@gmx.com&gt;<br><strong>Datum:</strong> 14 januari 2026 11:48<br><strong>Aan:</strong> freebsd-stable@FreeBSD.org<br><strong>Onderwerp:</strong> weird swap device name<br></small></p><blockquote style="margin-left: 5px; border-left: 3px solid #ccc; margin-right: 0px; padding-left: 5px;"><div class="MessageRFC822Viewer do_not_remove" id="P"><!-- P -->
    <!-- processMimeMessage --><div class="TextPlainViewer do_not_remove" id="P.P"><!-- P.P -->Hi,<br>

    Just noticed that swapinfo reports this:<br>

    root@aurora:~ # swapinfo<br>
    Device &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1K-blocks &nbsp;&nbsp;&nbsp;&nbsp;Used &nbsp;&nbsp;&nbsp;Avail Capacity<br>
    /dev/#C:0x101 &nbsp;&nbsp;&nbsp;10485760 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 10485760 &nbsp;&nbsp;&nbsp;&nbsp;0%<br>
    root@aurora:~ #<br>

    I am not sure what happened. I might have added some temporary<br>
    swap at some point. It cannot be removed. Any thoughts?<br>



    </div><!-- TextPlainViewer -->

    </div><!-- MessageRFC822Viewer -->
    </blockquote><br><br><br>I would reboot and see if it is better then.<div><br></div><div>Regards,</div><div>Ronald.</div><div><br><br></div></body></html>
    ------=_Part_227090_494372632.1768408643366--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Sulev-Madis Silber@freebsd-stable-freebsd-org730@ketas.si.pri.ee to muc.lists.freebsd.stable on Wed Jan 14 18:42:44 2026
    From Newsgroup: muc.lists.freebsd.stable

    i have seen this on 13.* once. or similar thing. i attributed it to some kind of corruption
    there, i had swap device with size i didn't add, but size was as if size of some other partition on some other device
    this 3rd nonfunctional device was seemingly never used nor did i experience any visible data corruption anywhere. using zfs
    problem seemed to appear after some sata devices went off bus and quickly reappeared
    i don't know how to test this. seems like this needs fuzzing but don't know if vm would be enough
    back then, everybody said that kernel doesn't allow it. yet it somehow did
    i think i even have some swapinfo outputs saved. which i was told to be impossible. "never seen anything like this"
    maybe this time this could be fixed?
    On January 14, 2026 12:47:29 PM GMT+02:00, Nikos Vassiliadis <nvass@gmx.com> wrote:
    Hi,

    Just noticed that swapinfo reports this:

    root@aurora:~ # swapinfo
    Device 1K-blocks Used Avail Capacity
    /dev/#C:0x101 10485760 0 10485760 0%
    root@aurora:~ #

    I am not sure what happened. I might have added some temporary
    swap at some point. It cannot be removed. Any thoughts?



    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Nikos Vassiliadis@nvass@gmx.com to muc.lists.freebsd.stable on Wed Jan 14 21:16:46 2026
    From Newsgroup: muc.lists.freebsd.stable

    On 1/14/26 18:42, Sulev-Madis Silber wrote:
    i have seen this on 13.* once. or similar thing. i attributed it to some kind of corruption
    This is on 14. I thought of corruption too.

    there, i had swap device with size i didn't add, but size was as if size of some other partition on some other device

    this 3rd nonfunctional device was seemingly never used nor did i experience any visible data corruption anywhere. using zfs

    problem seemed to appear after some sata devices went off bus and quickly reappeared

    i don't know how to test this. seems like this needs fuzzing but don't know if vm would be enough

    back then, everybody said that kernel doesn't allow it. yet it somehow did

    i think i even have some swapinfo outputs saved. which i was told to be impossible. "never seen anything like this"

    maybe this time this could be fixed?
    I rebooted because I thought better safe than sorry. The system had no available storage to swap on. And before this "device" there was another partition showed by swapinfo. That partition was part of a zpool, not
    really a device available to swap on. After exporting and importing
    that pool, that weird named appeared.



    On January 14, 2026 12:47:29 PM GMT+02:00, Nikos Vassiliadis <nvass@gmx.com> wrote:
    Hi,

    Just noticed that swapinfo reports this:

    root@aurora:~ # swapinfo
    Device 1K-blocks Used Avail Capacity
    /dev/#C:0x101 10485760 0 10485760 0%
    root@aurora:~ #

    I am not sure what happened. I might have added some temporary
    swap at some point. It cannot be removed. Any thoughts?




    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Nikos Vassiliadis@nvass@gmx.com to muc.lists.freebsd.stable on Fri Jan 16 13:48:04 2026
    From Newsgroup: muc.lists.freebsd.stable

    On 1/14/26 21:45, Mark Millard wrote:
    FYI for another issue,

    I would never recommend swapping to a file in a file system (vnode), especially to a zfs file:

    QUOTE ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206048#c7 )
    On 2017-Feb-13, at 7:20 PM, Konstantin Belousov <kostikbel at gmail.com> wrote on the freebsd-arm list:

    . . .

    swapfile write requires the write request to come through the filesystem write path, which might require the filesystem to allocate more memory
    and read some data. E.g. it is known that any ZFS write request
    allocates memory, and that write request on large UFS file might require allocating and reading an indirect block buffer to find the block number
    of the written block, if the indirect block was not yet read.

    As result, swapfile swapping is more prone to the trivial and
    unavoidable deadlocks where the pagedaemon thread, which produce free
    memory, needs more free memory to make a progress. Swap write on the
    raw partition over simple partitioning scheme directly over HBA are
    usually safe, while e.g. zfs over geli over umass is the worst construction. END QUOTE

    I have in the past suffered such consequences.
    That's good to say because everybody is saying that it is not
    recommended but most of the time people have no first hand experience of
    a failure.
    While this system have a few GBs of swap I removed it temporarily and I
    used a zvol for swap. When I am done it will have the traditional swap partition...
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Tomoaki AOKI@junchoon@dec.sakura.ne.jp to muc.lists.freebsd.stable on Fri Jan 16 23:29:54 2026
    From Newsgroup: muc.lists.freebsd.stable

    On Fri, 16 Jan 2026 13:48:04 +0200
    Nikos Vassiliadis <nvass@gmx.com> wrote:

    On 1/14/26 21:45, Mark Millard wrote:
    FYI for another issue,

    I would never recommend swapping to a file in a file system (vnode), especially to a zfs file:

    QUOTE ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206048#c7 )
    On 2017-Feb-13, at 7:20 PM, Konstantin Belousov <kostikbel at gmail.com> wrote on the freebsd-arm list:

    . . .

    swapfile write requires the write request to come through the filesystem write path, which might require the filesystem to allocate more memory
    and read some data. E.g. it is known that any ZFS write request
    allocates memory, and that write request on large UFS file might require allocating and reading an indirect block buffer to find the block number
    of the written block, if the indirect block was not yet read.

    As result, swapfile swapping is more prone to the trivial and
    unavoidable deadlocks where the pagedaemon thread, which produce free memory, needs more free memory to make a progress. Swap write on the
    raw partition over simple partitioning scheme directly over HBA are
    usually safe, while e.g. zfs over geli over umass is the worst construction.
    END QUOTE

    I have in the past suffered such consequences.

    That's good to say because everybody is saying that it is not
    recommended but most of the time people have no first hand experience of
    a failure.

    While this system have a few GBs of swap I removed it temporarily and I
    used a zvol for swap. When I am done it will have the traditional swap partition...

    Well, IIUC, using zvol for swap still has some risk.
    zvol gives functionalities of underlying pool like checksumming,
    if configured as such, also compression and crypt.

    Of course this functionalities consumes memories.

    So, not sure how OpenZFS is impmemented, it should mis-behave
    (including panics / crashes) under heavy thrushing situations
    unless memories needed for the features are statically allocated
    and strictly pinned to physical memory.

    Swap partitions are the safest.
    --
    Tomoaki AOKI <junchoon@dec.sakura.ne.jp>


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Warner Losh@imp@bsdimp.com to muc.lists.freebsd.stable on Fri Jan 16 07:37:43 2026
    From Newsgroup: muc.lists.freebsd.stable

    --0000000000005f63dc064882493e
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    On Fri, Jan 16, 2026 at 7:30=E2=80=AFAM Tomoaki AOKI <junchoon@dec.sakura.n= e.jp>
    wrote:

    On Fri, 16 Jan 2026 13:48:04 +0200
    Nikos Vassiliadis <nvass@gmx.com> wrote:

    On 1/14/26 21:45, Mark Millard wrote:
    FYI for another issue,

    I would never recommend swapping to a file in a file system (vnode), especially to a zfs file:

    QUOTE ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206048#c7=
    )
    On 2017-Feb-13, at 7:20 PM, Konstantin Belousov <kostikbel at
    gmail.com>
    wrote on the freebsd-arm list:

    . . .

    swapfile write requires the write request to come through the
    filesystem
    write path, which might require the filesystem to allocate more memor=
    y
    and read some data. E.g. it is known that any ZFS write request
    allocates memory, and that write request on large UFS file might
    require
    allocating and reading an indirect block buffer to find the block
    number
    of the written block, if the indirect block was not yet read.

    As result, swapfile swapping is more prone to the trivial and
    unavoidable deadlocks where the pagedaemon thread, which produce free memory, needs more free memory to make a progress. Swap write on the
    raw partition over simple partitioning scheme directly over HBA are usually safe, while e.g. zfs over geli over umass is the worst
    construction.
    END QUOTE

    I have in the past suffered such consequences.

    That's good to say because everybody is saying that it is not
    recommended but most of the time people have no first hand experience o=
    f
    a failure.

    While this system have a few GBs of swap I removed it temporarily and I used a zvol for swap. When I am done it will have the traditional swap partition...

    Well, IIUC, using zvol for swap still has some risk.
    zvol gives functionalities of underlying pool like checksumming,
    if configured as such, also compression and crypt.

    Of course this functionalities consumes memories.

    So, not sure how OpenZFS is impmemented, it should mis-behave
    (including panics / crashes) under heavy thrushing situations
    unless memories needed for the features are statically allocated
    and strictly pinned to physical memory.

    Swap partitions are the safest.


    This is absolutely true. You can swap to raw partitions without allocating additional memory (and when the write is complete, free up the memory
    for other things). With zvol, there's many memory allocations needed to
    do the I/O, which can deadlock in low memory situations (eg, you need
    memory to free memory and can't until memory is freed...).

    zvols are great for a large variety of things. swap partitions aren't one
    of them, except in very limited circumstances where you have a little
    memory pressure to force things out, but are never running anywhere
    close to the edge. Not 'rarely' but 'never'.

    Warner

    --0000000000005f63dc064882493e
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g= mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Jan 16,=
    2026 at 7:30=E2=80=AFAM Tomoaki AOKI &lt;<a href=3D"mailto:junchoon@dec.sa= kura.ne.jp">junchoon@dec.sakura.ne.jp</a>&gt; wrote:<br></div><blockquote c= lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
    d rgb(204,204,204);padding-left:1ex">On Fri, 16 Jan 2026 13:48:04 +0200<br> Nikos Vassiliadis &lt;<a href=3D"mailto:nvass@gmx.com" target=3D"_blank">nv= ass@gmx.com</a>&gt; wrote:<br>

    &gt; On 1/14/26 21:45, Mark Millard wrote:<br>
    &gt; &gt; FYI for another issue,<br>
    &gt; &gt; <br>
    &gt; &gt; I would never recommend swapping to a file in a file system (vnod= e),<br>
    &gt; &gt; especially to a zfs file:<br>
    &gt; &gt; <br>
    &gt; &gt; QUOTE ( <a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi= ?id=3D206048#c7" rel=3D"noreferrer" target=3D"_blank">https://bugs.freebsd.= org/bugzilla/show_bug.cgi?id=3D206048#c7</a> )<br>
    &gt; &gt; On 2017-Feb-13, at 7:20 PM, Konstantin Belousov &lt;kostikbel at =
    <a href=3D"http://gmail.com" rel=3D"noreferrer" target=3D"_blank">gmail.com= </a>&gt;<br>
    &gt; &gt; wrote on the freebsd-arm list:<br>
    &gt; &gt; <br>
    &gt; &gt; . . .<br>
    &gt; &gt; <br>
    &gt; &gt; swapfile write requires the write request to come through the fil= esystem<br>
    &gt; &gt; write path, which might require the filesystem to allocate more m= emory<br>
    &gt; &gt; and read some data. E.g. it is known that any ZFS write request<b=

    &gt; &gt; allocates memory, and that write request on large UFS file might = require<br>
    &gt; &gt; allocating and reading an indirect block buffer to find the block=
    number<br>
    &gt; &gt; of the written block, if the indirect block was not yet read.<br> &gt; &gt; <br>
    &gt; &gt; As result, swapfile swapping is more prone to the trivial and<br> &gt; &gt; unavoidable deadlocks where the pagedaemon thread, which produce = free<br>
    &gt; &gt; memory, needs more free memory to make a progress.=C2=A0 Swap wri=
    te on the<br>
    &gt; &gt; raw partition over simple partitioning scheme directly over HBA a= re<br>
    &gt; &gt; usually safe, while e.g. zfs over geli over umass is the worst co= nstruction.<br>
    &gt; &gt; END QUOTE<br>
    &gt; &gt; <br>
    &gt; &gt; I have in the past suffered such consequences.<br>
    &gt; <br>
    &gt; That&#39;s good to say because everybody is saying that it is not<br>
    &gt; recommended but most of the time people have no first hand experience = of<br>
    &gt; a failure.<br>
    &gt; <br>
    &gt; While this system have a few GBs of swap I removed it temporarily and = I<br>
    &gt; used a zvol for swap. When I am done it will have the traditional swap=

    &gt; partition...<br>

    Well, IIUC, using zvol for swap still has some risk.<br>
    zvol gives functionalities of underlying pool like checksumming,<br>
    if configured as such, also compression and crypt.<br>

    Of course this functionalities consumes memories.<br>

    So, not sure how OpenZFS is impmemented, it should mis-behave<br>
    (including panics / crashes) under heavy thrushing situations<br>
    unless memories needed for the features are statically allocated<br>
    and strictly pinned to physical memory.<br>

    Swap partitions are the safest.<br></blockquote><div><br></div><div>This is=
    absolutely true. You can swap to raw partitions without allocating</div><d= iv>additional memory (and when the write is complete, free up the memory</d= iv><div>for other things). With zvol, there&#39;s many memory allocations n= eeded to</div><div>do the I/O, which can deadlock in low memory situations = (eg, you need</div><div>memory to free memory and can&#39;t until memory is=
    freed...).</div><div><br></div><div>zvols are great for a large variety of=
    things. swap partitions aren&#39;t one</div><div>of them, except in very l= imited circumstances where you have a little</div><div>memory pressure to f= orce things out, but are never running anywhere</div><div>close to the edge=
    . Not &#39;rarely&#39; but &#39;never&#39;.</div><div><br></div><div>Warner= </div></div></div>

    --0000000000005f63dc064882493e--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Tuomo Latto@djv@iki.fi to muc.lists.freebsd.stable on Fri Jan 16 15:37:45 2026
    From Newsgroup: muc.lists.freebsd.stable

    On January 16, 2026 2:37:43 PM UTC, Warner Losh <imp@bsdimp.com> wrote:
    On Fri, Jan 16, 2026 at 7:30rC>AM Tomoaki AOKI <junchoon@dec.sakura.ne.jp> >wrote:

    On Fri, 16 Jan 2026 13:48:04 +0200
    Nikos Vassiliadis <nvass@gmx.com> wrote:

    On 1/14/26 21:45, Mark Millard wrote:
    FYI for another issue,

    I would never recommend swapping to a file in a file system (vnode),
    especially to a zfs file:

    QUOTE ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206048#c7 )
    On 2017-Feb-13, at 7:20 PM, Konstantin Belousov <kostikbel at
    gmail.com>
    wrote on the freebsd-arm list:

    . . .

    swapfile write requires the write request to come through the
    filesystem
    write path, which might require the filesystem to allocate more memory >> > > and read some data. E.g. it is known that any ZFS write request
    allocates memory, and that write request on large UFS file might
    require
    allocating and reading an indirect block buffer to find the block
    number
    of the written block, if the indirect block was not yet read.

    As result, swapfile swapping is more prone to the trivial and
    unavoidable deadlocks where the pagedaemon thread, which produce free
    memory, needs more free memory to make a progress. Swap write on the
    raw partition over simple partitioning scheme directly over HBA are
    usually safe, while e.g. zfs over geli over umass is the worst
    construction.
    END QUOTE

    I have in the past suffered such consequences.

    That's good to say because everybody is saying that it is not
    recommended but most of the time people have no first hand experience of >> > a failure.

    While this system have a few GBs of swap I removed it temporarily and I
    used a zvol for swap. When I am done it will have the traditional swap
    partition...

    Well, IIUC, using zvol for swap still has some risk.
    zvol gives functionalities of underlying pool like checksumming,
    if configured as such, also compression and crypt.

    Of course this functionalities consumes memories.

    So, not sure how OpenZFS is impmemented, it should mis-behave
    (including panics / crashes) under heavy thrushing situations
    unless memories needed for the features are statically allocated
    and strictly pinned to physical memory.

    Swap partitions are the safest.


    This is absolutely true. You can swap to raw partitions without allocating >additional memory (and when the write is complete, free up the memory
    for other things). With zvol, there's many memory allocations needed to
    do the I/O, which can deadlock in low memory situations (eg, you need
    memory to free memory and can't until memory is freed...).

    zvols are great for a large variety of things. swap partitions aren't one
    of them, except in very limited circumstances where you have a little
    memory pressure to force things out, but are never running anywhere
    close to the edge. Not 'rarely' but 'never'.

    Warner
    So, a stupid question then comes to mind:
    Should there be a "zraw" or "zdirect" or something that would
    be an allocated block for raw, direct access bypassing all those
    complications for the sake of allowing the creation of things
    like swap within the existing disk layout?
    I mean, it is obviously better to just do it the right way, etc.,
    but situations might arise, right? E.g. the ability to temporarily
    add more swap space might be beneficial in some instances.
    If something like that was possible, sounds like it would
    at least be better than using a swapfile, even though I guess
    it might interfere with the optimal operation of the filesystem.
    --
    Tuomo
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2