Date: Sun, 13 May 2018 12:03:51 +0800 From: thor <thor@irk.ru> To: freebsd-questions@freebsd.org Subject: Re: swapfile question Message-ID: <82cc7430-c37b-e076-b801-e0e89df3f544@irk.ru> In-Reply-To: <CAFuo_fxUspphdS3eiX99gzkesDxuZw%2BVbxHbfZj7phEPvr-C_w@mail.gmail.com> References: <09eab1d4-3dd8-3530-bdbf-b436ec6aeeed@zyxst.net> <CAFuo_fxUspphdS3eiX99gzkesDxuZw%2BVbxHbfZj7phEPvr-C_w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Partition is faster because it does not depend on all the file processor. But: 1) I had a setup where the swap was a md vnode on a geli partition. And it has some troubles, I didn't investigate why. The main trouble was a panic immediately after disk sync on shutdown. So in the future I am going to use a separate geli partition for swap. 2) Use of lots of RAM without swap is even faster. But there are some programs (notably compile libre office) that need lots of ram/swap per core. On 05/12/18 23:39, Waitman Gobble wrote: > On Sat, May 12, 2018 at 6:51 AM, tech-lists <tech-lists@zyxst.net> wrote: >> Hi, >> >> In a SSD/amd64/ufs2/freebsd-11 context, which is faster: >> >> 1. swap as a partition on the ssd >> 2. swap as a file on the ssd >> >> If one is faster than the other, why? To what extent? >> >> thanks, >> -- >> J. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > Don't swap. 1 and 2 are both slower. > > I use Warren Block's SSD setup and create swap file, seems to work A-OK. > > http://www.wonkity.com/~wblock/docs/ > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82cc7430-c37b-e076-b801-e0e89df3f544>