Re: swp_pager_meta_build DoS printf

2012-08-16 Thread Dag-Erling Smørgrav
John Baldwin j...@freebsd.org writes: I think DES has a newer variant of this now? Committed, along with an additional patch that warns you if you configure more swap than the pager can handle. DES -- Dag-Erling Smørgrav - d...@des.no ___

Re: swp_pager_meta_build DoS printf

2012-08-15 Thread John Baldwin
On Monday, August 13, 2012 1:49:38 am Sergey Kandaurov wrote: On 2 July 2012 20:31, Bjoern A. Zeeb bzeeb-li...@lists.zabbadoz.net wrote: On 2. Jul 2012, at 14:36 , John Baldwin wrote: On Sunday, July 01, 2012 8:23:31 am Bjoern A. Zeeb wrote: Hey, hitting this printf in

Re: swp_pager_meta_build DoS printf

2012-08-15 Thread Sergey Kandaurov
On 15 August 2012 19:21, John Baldwin j...@freebsd.org wrote: On Monday, August 13, 2012 1:49:38 am Sergey Kandaurov wrote: On 2 July 2012 20:31, Bjoern A. Zeeb bzeeb-li...@lists.zabbadoz.net wrote: On 2. Jul 2012, at 14:36 , John Baldwin wrote: On Sunday, July 01, 2012 8:23:31 am Bjoern

Re: swp_pager_meta_build DoS printf

2012-08-14 Thread Dag-Erling Smørgrav
Sergey Kandaurov pluk...@gmail.com writes: What about this patch? It enables to ratelimit the printf. I have a different patch that just prints one message when swzone is exhausted and another when more space becomes available. However, we might want to combine the two, so that it periodically

Re: swp_pager_meta_build DoS printf

2012-08-12 Thread Sergey Kandaurov
On 2 July 2012 20:31, Bjoern A. Zeeb bzeeb-li...@lists.zabbadoz.net wrote: On 2. Jul 2012, at 14:36 , John Baldwin wrote: On Sunday, July 01, 2012 8:23:31 am Bjoern A. Zeeb wrote: Hey, hitting this printf in swp_pager_meta_build() if (uma_zone_exhausted(swap_zone))

Re: swp_pager_meta_build DoS printf

2012-07-02 Thread John Baldwin
On Sunday, July 01, 2012 8:23:31 am Bjoern A. Zeeb wrote: Hey, hitting this printf in swp_pager_meta_build() if (uma_zone_exhausted(swap_zone)) { printf(swap zone exhausted, increase kern.maxswzone\n);

Re: swp_pager_meta_build DoS printf

2012-07-02 Thread Bjoern A. Zeeb
On 2. Jul 2012, at 14:36 , John Baldwin wrote: On Sunday, July 01, 2012 8:23:31 am Bjoern A. Zeeb wrote: Hey, hitting this printf in swp_pager_meta_build() if (uma_zone_exhausted(swap_zone)) { printf(swap zone exhausted, increase

swp_pager_meta_build DoS printf

2012-07-01 Thread Bjoern A. Zeeb
Hey, hitting this printf in swp_pager_meta_build() if (uma_zone_exhausted(swap_zone)) { printf(swap zone exhausted, increase kern.maxswzone\n); vm_pageout_oom(VM_OOM_SWAPZ);