zvolにスワップを作るのは意味がない?

自宅鯖にslog/L2ARC用のSSDを追加するついでに、現在HDD上にあるスワップ専用パーティションをSSDのZFSボリュームに移そうと画策していたが、zvol上のスワップってまともに動くのか不意に気になりだした。 いや、だってさ、潤沢なメモリを必要とするZFSがメモリ不足時に機能するスワップを読み書きするという、相反する2つの事象が発生するわけで。それ本当に大丈夫なの?という疑問が湧くのは当然じゃないかと。

ググってみたら、案の定というか、スワップ on zvolだとメモリ枯渇でシステムが応答しなくなる事例が幾つか出てきた。

swap無しだと数分でOSごと固まる。 zvolで4G分swapをとってもほぼ同じ。
60GBのHDDに4G分swapを取るとこけなくなるが、まれに書き込みエラーで展開がアボートする。

(中略)

swap無しの場合はメモリを食いつぶした時点でプロセスが死んで終了。特に影響無し。
zvolで4G取ってswapにした場合、pageoutがしばらく続いて反応がなくなる。zvolにディスクが100%割り当てられている状態でも同じだった。
60GB HDDに普通のswapを4G取った場合、各プロセスがメモリの上限に達して死ぬ。OSには影響無し。
zfs again | dogmap.jp

SWAP partition

Now let’s see how the system behaves if we run memory.c on an installation with a normal 2GB swap partition:

The system stays responsive and kills memory.c as soon as it runs out of swap space.

ZVOL

Now let’s try the same thing with the swap space on a ZVOL:

It still replies to ping requests, but it has stopped being responsive. You cannot kill memory.c or do anything else useful.
(中略)

And if you can trust the top output, it crashed with only about 60MB of swap space used. Philipp Schmid - FreeBSD 10: does SWAP work on a ZVOL?

全然だめじゃーん。てか、FreeBSD Wikiにも「実メモリが全くなくなると、システムは応答しなくなる可能性がある」って書いてあった……。

引用元の前者は物理メモリ1GB、後者はVMで256MB割り当てた環境と、そもそもZFSを動かすのには適していなかったりもするが…。メモリが増えた所で、枯渇時の挙動が大幅に変わるとも思えないし。

というわけで方針変更。zvol方式はやめてSSDに従来通りスワップパーティションを設ける形で。今のスワップは全部あわせて40GBとかなり豪勢だが、8GBもあれば十分だろう。所詮家鯖だし。てか、設定ミスで今現在はスワップなしだけど24GBの物理メモリで全く問題なく動いてるし。

Hello seekers of cleaner air from cigarette smoke ! If you are considering smoke air purifiers, analysis of the certification can provide assurance about quality. <a href=“https://bestairpurifierforcigarettesmoke.space/” rel=“nofollow ugc”>best air purifier for cigarette smoke</a>. Look for models endorsed by relevant organizations for maximum credibility. This attention to detail enhances trust that you’re purchasing one of the best smoke air purifiers available. For those who are serious about reducing smoke pollution within their living spaces, air purifiers for smokers are a critical investment. They operate quietly and efficiently, ensuring you can maintain a peaceful environment while enjoying your smoking habits. Utilizing air purifiers for smokers allows for a balance between personal choices and health considerations. The Best Cigarette Smoke Air Purifier for Allergy Sufferers - п»їhttps://bestairpurifierforcigarettesmoke.space/ May you enjoy incredible healthier air quality journeys !

1 | | 2026-06-23 19:46 | reply

Hello people concerned about pet-related allergens ! The best air purifier for pet hair should have multiple fan speeds, giving you control over the airflow. <a href=“https://best-air-purifier-for-pets.vercel.app/” rel=“nofollow ugc”>best-air-purifier-for-pets.vercel.app</a>. This feature allows you to adjust the intensity of purification based on your pet's activity and the amount of hair and dander present. Look for a model that suits your lifestyle and preferences. The best home air purifier for pets often comes with various settings tailored for pet-related issues. Some models have specific modes designed for pet dander, odors, or even seasonal allergens. Tailoring the purifier's operation to meet your pet's specific needs can significantly enhance overall air quality. How to Choose the Best Air Purifier for Pets Easily - http://bestvacuumforhardwoodfloors.vercel.app/# May you enjoy incredible transformations in air quality with pets at home !

2 | | 2026-06-23 23:41 | reply

Good day! This post <a href=“https://lsm999dna.online/”>lsm9999</a> could not be written any better! Reading this post reminds me of my previous room mate! He always kept chatting about this. I will forward this page to him. Pretty sure he will have a good read. Thanks for sharing.

3 | | 2026-07-03 05:09 | reply

подробнее здесь <a href=https://tripscans90.cc/>tripskan</a>

4 | | 2026-07-04 17:38 | reply

нажмите здесь <a href=https://tripscans90.cc>сайт трипскан</a>

5 | | 2026-07-05 10:41 | reply

Doy la bienvenida a todos los jugadores de casino ! Las herramientas de juego responsable tambiГ©n estГЎn disponibles en los casinos sin registro mГЎs profesionales del sector. <a href=https://casinossinlicenciaenespana-weld.vercel.app/#>casinossinlicenciaenespana-weld.vercel.app</a> Opciones de autoexclusiГіn temporal, lГ­mites voluntarios de depГіsito y alertas de tiempo de sesiГіn protegen al jugador. La responsabilidad individual es compatible con el disfrute pleno del entretenimiento digital. Las herramientas de juego responsable tambiГ©n estГЎn disponibles en los casinos sin registro mГЎs profesionales del sector. Opciones de autoexclusiГіn temporal, lГ­mites voluntarios de depГіsito y alertas de tiempo de sesiГіn protegen al jugador. La responsabilidad individual es compatible con el disfrute pleno del entretenimiento digital. Casinos sin licencia en espana: comparativa y reseГ±as - http://casinossinlicenciaenespana-weld.vercel.app/ Espero que disfrutes de increibles botes! casinossinlicenciaenespana-weld.vercel.app

6 | | 2026-07-15 23:00 | reply

Doy la bienvenida a todos los maestros del poker ! La secciГіn de casino en vivo de los casinos sin licencia en espana rivaliza con las mejores salas del mundo. <a href=“https://casinossinlicenciaenespana-weld.vercel.app/#” rel=“nofollow ugc”>casinos sin licencia en espana</a> Crupieres profesionales conducen partidas de blackjack, ruleta, baccarat y pГіker en alta definiciГіn las veinticuatro horas. La interacciГіn en tiempo real con el crupier y otros jugadores crea una atmГіsfera autГ©ntica e inmersiva. Los programas VIP en los casinos online sin licencia recompensan generosamente la fidelidad del jugador habitual. Puntos acumulables canjeables por bonos, tiradas gratis o efectivo incentivan la permanencia en la plataforma. Los niveles superiores desbloquean ventajas exclusivas como gestores personalizados y retiros prioritarios. Casinos online sin licencia con aplicaciГіn mГіvil optimizada - http://casinossinlicenciaenespana-weld.vercel.app/# Espero que disfrutes de increibles premios ! casinos sin registro

7 | | 2026-07-17 01:13 | reply

Doy la bienvenida a todos los fanaticos de los casinos sin dni ! La secciГіn de casino en vivo de un casino online sin verificaciГіn rivaliza con las mejores del sector regulado. <a href=“https://casinosinverificacion-hub.vercel.app/#” rel=“nofollow ugc”>casino sin verificaciГіn</a> Mesas de blackjack, ruleta, baccarat y game shows operan las veinticuatro horas con crupieres profesionales. La calidad del streaming en alta definiciГіn crea una atmГіsfera inmersiva y realista. La interacciГіn con el crupier y otros jugadores aГ±ade la dimensiГіn social que muchos usuarios valoran. El soporte al cliente en un casino online sin verificaciГіn funciona eficientemente a travГ©s de mГєltiples canales de comunicaciГіn. El chat en vivo disponible las veinticuatro horas resuelve la mayorГ­a de consultas de forma inmediata. El correo electrГіnico atiende las solicitudes mГЎs complejas que requieren documentaciГіn o seguimiento detallado. La calidad de la atenciГіn recibida es un indicador fiable de la seriedad del operador. ReseГ±as de casino online sin verificaciГіn - http://casinosinverificacion-hub.vercel.app/ Espero que encuentres las mejores partidas ! mejores casinos sin dni

8 | | 2026-07-18 00:42 | reply
  • blog/2015/2015-03-31.txt
  • 最終更新: 2015-03-31 11:00
  • by Decomo