On Fri, 12 Sep 2025 11:43:32 +0100
void <[email protected]> wrote:

> On Fri, Sep 12, 2025 at 01:20:08PM +0900, Tatsuki Makino wrote:
> >Hello.
> >
> >By the way, is it unpopular these days to use mdconfig to use a normal 
> >regular file as swap space?
> >However, despite the fact that I brought up the topic of that method, I have 
> >never actually used it myself, so it seems that the method is unpopular :)
> 
> Useful to make extra swap space on-the-fly. I've used it on occasion 
> to add swap space. But it's best added to the fastest media, like
> ssd. Adding it to a spinning rust ufs is slower. It's not really
> suitable to add to a zfs filesystem in my experience.
> -- 

To do so, large enough spare real memory to handle filesystem (and/or
zvol) operations even on thrashing situations is mandatory.
And if the filesystem which the swap file to be created is severely
fragmented, more real memory compared with non-fragmented filesystems
would be needed.

-- 
Tomoaki AOKI    <[email protected]>

Reply via email to