Date: Tue, 3 Dec 2013 09:58:44 +0200 From: Ivailo.TANUSHEFF@raiffeisen.bg To: Beeblebrox <zaphod@berentweb.com> Cc: freebsd-fs@freebsd.org, owner-freebsd-fs@freebsd.org Subject: Re: Questions re swap-on-zfs Message-ID: <OFF141F01E.834A981C-ONC2257C36.002B2567-C2257C36.002BD48B@LocalDomain> In-Reply-To: <1386054141012-5865623.post@n5.nabble.com> References: <1380880223590-5848720.post@n5.nabble.com> <524EEE40.5060208@gmail.com> <CACpH0McMfQ3r-n-ijL6Aoum=QoMY_FczBzu3vt%2BcYwCJkCNOzw@mail.gmail.com> <1381005634317-5849247.post@n5.nabble.com> <CA%2BtpaK0Nkw8fN-TmYqAwudHTi2RpmidNmK0UTae040AQ%2BX7NLA@mail.gmail.com> <1386054141012-5865623.post@n5.nabble.com>
index | next in thread | previous in thread | raw e-mail
Hello there :) I had similar issues with a test box (FreeBSD 9.1) I used few months ago with not so much free RAM - the box had 1-3GB total RAM as far as I remember. After digging I have found that the problem was actually a swap deadlock :) What I mean: when you heavily utilize the system, for example building ports or something, the system tries to swap some memory, used by the ZFS. The problem is, that the swap is actually on the ZFS itself and uses the same memory. I am not sure I describe this precisely, but the overall result is that the system uses more and more swap space just to be able to swap something relatively small. It ends up crashing the system several times. What I did and made the things OK - I just removed the swap from the ZFS. I used the first/last 1-2GB on each disk out of the ZFS just for swap - the system had 3 disks. After initiating the same operations I have noticed that the system used less that 0.5GB swap, so the problem was not the quantity, but the fact that swap is on ZFS. Maybe on a system with more RAM that will not be an issue :) Regards, Ivailo TANUSHEFF Head of IT Operations Department Raiffeisenbank (Bulgaria) EAD 55 Nikola Vaptzarov Blvd , Expo 2000, Building E, 1407 Sofia, Bulgaria Tel.: +359 2 8610-816 Fax: +359 2 9628350 e-mail: Ivailo.TANUSHEFF@raiffeisen.bg web: www.rbb.bg From: Beeblebrox <zaphod@berentweb.com> To: freebsd-fs@freebsd.org, Date: 03.12.2013 09:03 Subject: Re: Questions re swap-on-zfs Sent by: owner-freebsd-fs@freebsd.org Thanks Adam, I re-shuffled my HDD and extracted the swap on the spindle HDD to a 4G partition. A poudriere run on all 4 cores produced an "out of swap space" message soon after. I first thought it must be some mistake, but later saw swap usage max to 1.9G when poudriere dropped to 1 build jail and was only building libreoffice. I can imagine what swap gets to when building 4 large ports concurrently then. It seems like code is a little larger in 11. I mean, root "/" and /usr occupy more HDD space and I never ran out of swap before. 4G ram + 4G swap would be more than enough I assumed. I'll probably bump up to 6G swap space (4 cores x 1.5G = 6G) Thanks to everyone for their input. ----- FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS -- View this message in context: http://freebsd.1045724.n5.nabble.com/Questions-re-swap-on-zfs-tp5848720p5865623.html Sent from the freebsd-fs mailing list archive at Nabble.com. _______________________________________________ freebsd-fs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-fs To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" DISCLAIMER: The contents of this e-mail are intended for the named addressee only. It contains information that may be privileged and/or confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. Messages transported over the public Internet are susceptible to alteration. Raiffeisenbank (Bulgaria) EAD, Raiffeisen Asset Management (Bulgaria) EAD, Raiffeisen Insurance Broker EOOD, Raiffeisen Services EAD, Raiffeisen Leasing Bulgaria OOD, Raiffeisen Auto Leasing Bulgaria EOOD and Raiffeisen Real Estate EOOD shall not be liable for the message if altered, changed or falsified. ОГРАНИЧЕНИЕ НА ОТГОВОРНОСТТА: Съдържанието на това електронно съобщение е предназначено единствено за посочения получател. Съобщението съдържа информация, която може да бъде предназначена за ограничено ползване и/или поверителна. В случай че не сте указания получател на това съобщение или негов оторизиран представител, нямате право да го копирате или използвате, както и да разкривате съдържанието му пред трети лица. Ако сте го получили по грешка, моля да уведомите подателя незабавно и да изтриете това съобщение от системата. Електронните съобщения, разпространявани по Интернет могат да бъдат променяни. Райфайзенбанк (България) ЕАД, Райфайзен Асет Мениджмънт (България) ЕАД, Райфайзен Застрахователен Брокер ЕООД, Райфайзен Сървисиз ЕАД, Райфайзен Лизинг България ООД, Райфайзен Ауто Лизинг България ЕООД и Райфайзен Имоти ЕООД не носят отговорност за модифицирани, променени или фалшифицирани съобщения.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OFF141F01E.834A981C-ONC2257C36.002B2567-C2257C36.002BD48B>
