Date: Sun, 14 Aug 2022 18:31:45 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: Mark Millard <marklmi@yahoo.com> Cc: FreeBSD Mailing List <freebsd-ports@freebsd.org> Subject: Re: Resolved: devel/llvm13 build: "ninja: build stopped: subcommand failed" Message-ID: <CAFDf7ULAPa-YcYezUDCAVP-cMijYLMpLM10z7Xom%2B1siXvn42g@mail.gmail.com> In-Reply-To: <21FC1F5E-240E-4A8C-A5D2-6B73494026C0@yahoo.com> References: <1D4C14BD-8955-4B86-9C99-3E58D7603122.ref@yahoo.com> <1D4C14BD-8955-4B86-9C99-3E58D7603122@yahoo.com> <CAFDf7UK-pAFXCrZZA9veASaa-wf9HKMdX52fxmcmDgRFiNOF7A@mail.gmail.com> <7CDC63F3-8B68-420E-8012-B1692667E293@yahoo.com> <CAFDf7UJmBNvfVo3SAenPUk1WkFgvpkqoM6=Riv6pwaovuNnAWg@mail.gmail.com> <21FC1F5E-240E-4A8C-A5D2-6B73494026C0@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000564d2405e636e40f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, I will avoid a swap file. My actual config shows: `swapinfo`: --- Device 1K-blocks Used Avail Capacity /dev/nvd0p2 4194304 6036 4188268 0% --- and `cat /etc/fstab`: --- # Device Mountpoint FStype Options Dump Pass# /dev/nvd0p1 /boot/efi msdosfs rw 2 2 /dev/nvd0p2 none swap sw 0 0 --- Any clues how do I do this? Mark Millard <marklmi@yahoo.com> escreveu no dia domingo, 14/08/2022 =C3=A0= (s) 18:21: > On 2022-Aug-14, at 10:15, Nuno Teixeira <eduardo@freebsd.org> wrote: > > > I use ZFS. > > > > I will follow your recomendations and use a swap of 64GB and then test > it again. > > > > In the meanwhile I will take a look at freebsd docs to see how do I > increase swap, by adding a new swap file or resize actual one if possible= . > > I recommend never using a swap file, only swap partition(s), in order > to avoid deadlocks and such: > > 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 produces free memory, needs > more free memory to make a progress. Swap write on the raw partition ove= r > simple partitioning scheme directly over HBA are usually safe, while e.g. > zfs over geli over umass is the worst construction. > > > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000564d2405e636e40f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Ok, I will avoid a swap file.</div><div><br></div><di= v>My actual config shows:</div><div>`swapinfo`:</div><div>---<br></div><div= >Device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01K-blocks =C2=A0 =C2=A0 Used =C2= =A0 =C2=A0Avail Capacity<br>/dev/nvd0p2 =C2=A0 =C2=A0 =C2=A0 4194304 =C2=A0= =C2=A0 6036 =C2=A04188268 =C2=A0 =C2=A0 0%</div><div>---</div><div>and `ca= t /etc/fstab`:</div><div>---</div><div># Device =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0Mountpoint =C2=A0 =C2=A0 =C2=A0FStype =C2=A0Opt= ions =C2=A0 =C2=A0 =C2=A0 =C2=A0 Dump =C2=A0 =C2=A0Pass#<br>/dev/nvd0p1 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /boot/efi =C2=A0 =C2=A0 =C2=A0 msdos= fs rw =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02 =C2=A0 =C2=A0 =C2= =A0 2<br>/dev/nvd0p2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 none =C2=A0 = =C2=A0swap =C2=A0 =C2=A0sw =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= 0 =C2=A0 =C2=A0 =C2=A0 0</div><div>---</div><div><br></div><div>Any clues h= ow do I do this?</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr"= class=3D"gmail_attr">Mark Millard <<a href=3D"mailto:marklmi@yahoo.com"= >marklmi@yahoo.com</a>> escreveu no dia domingo, 14/08/2022 =C3=A0(s) 18= :21:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px= 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2022-Aug= -14, at 10:15, Nuno Teixeira <<a href=3D"mailto:eduardo@freebsd.org" tar= get=3D"_blank">eduardo@freebsd.org</a>> wrote:<br> <br> > I use ZFS.<br> > <br> > I will follow your recomendations and use a swap of 64GB and then test= it again.<br> > <br> > In the meanwhile I will take a look at freebsd docs to see how do I in= crease swap, by adding a new swap file or resize actual one if possible.<br= > <br> I recommend never using a swap file, only swap partition(s), in order<br> to avoid deadlocks and such:<br> <br> On 2017-Feb-13, at 7:20 PM, Konstantin Belousov <kostikbel at <a href=3D= "http://gmail.com" rel=3D"noreferrer" target=3D"_blank">gmail.com</a>> w= rote<br> on the freebsd-arm list:<br> <br> . . .<br> <br> swapfile write requires the write request to come through the filesystem<br= > write path, which might require the filesystem to allocate more memory<br> and read some data. E.g. it is known that any ZFS write request<br> allocates memory, and that write request on large UFS file might require<br= > allocating and reading an indirect block buffer to find the block number<br= > of the written block, if the indirect block was not yet read.<br> <br> As result, swapfile swapping is more prone to the trivial and unavoidable<b= r> deadlocks where the pagedaemon thread, which produces free memory, needs<br= > more free memory to make a progress.=C2=A0 Swap write on the raw partition = over<br> simple partitioning scheme directly over HBA are usually safe, while e.g.<b= r> zfs over geli over umass is the worst construction.<br> <br> <br> <br> =3D=3D=3D<br> Mark Millard<br> marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer" target=3D"_blank= ">yahoo.com</a><br> <br> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g= mail_signature"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nun= o Teixeira<br>FreeBSD Committer (ports)</span></div></div> --000000000000564d2405e636e40f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULAPa-YcYezUDCAVP-cMijYLMpLM10z7Xom%2B1siXvn42g>