Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-06 Thread Yar Tikhiy
On Mon, Mar 05, 2007 at 01:14:29PM -0500, Mikhail Teterin wrote: On Monday 05 March 2007 08:23, Yar Tikhiy wrote: = How will it break them?  swap backing only touches swap if there is = memory pressure, i.e. precisely the situation in which malloc backing = will panic. = = I forgot that

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-05 Thread Yar Tikhiy
On Sun, Mar 04, 2007 at 10:59:46PM -0500, Kris Kennaway wrote: On Sun, Mar 04, 2007 at 10:59:46AM +0300, Yar Tikhiy wrote: On Tue, Feb 27, 2007 at 04:03:30PM -0500, Mikhail Teterin wrote: On Tuesday 27 February 2007 15:53, Alex Kozlov wrote: = Yes, I switched to swap-backed md already.

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-05 Thread Mikhail Teterin
On Monday 05 March 2007 08:23, Yar Tikhiy wrote: = How will it break them?  swap backing only touches swap if there is = memory pressure, i.e. precisely the situation in which malloc backing = will panic. = = I forgot that in BSD swap wouldn't be allocated in advance to its = consumers.  Then

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-05 Thread Yar Tikhiy
On Mon, Mar 05, 2007 at 01:14:29PM -0500, Mikhail Teterin wrote: On Monday 05 March 2007 08:23, Yar Tikhiy wrote: = How will it break them?  swap backing only touches swap if there is = memory pressure, i.e. precisely the situation in which malloc backing = will panic. = = I forgot that

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-05 Thread Kostik Belousov
On Mon, Mar 05, 2007 at 10:17:14PM +0300, Yar Tikhiy wrote: On Mon, Mar 05, 2007 at 01:14:29PM -0500, Mikhail Teterin wrote: On Monday 05 March 2007 08:23, Yar Tikhiy wrote: = How will it break them?  swap backing only touches swap if there is = memory pressure, i.e. precisely the

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-05 Thread Yar Tikhiy
On Mon, Mar 05, 2007 at 09:30:22PM +0200, Kostik Belousov wrote: On Mon, Mar 05, 2007 at 10:17:14PM +0300, Yar Tikhiy wrote: On Mon, Mar 05, 2007 at 01:14:29PM -0500, Mikhail Teterin wrote: On Monday 05 March 2007 08:23, Yar Tikhiy wrote: = How will it break them?  swap backing only

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-05 Thread Scott Long
Kostik Belousov wrote: On Mon, Mar 05, 2007 at 10:17:14PM +0300, Yar Tikhiy wrote: On Mon, Mar 05, 2007 at 01:14:29PM -0500, Mikhail Teterin wrote: On Monday 05 March 2007 08:23, Yar Tikhiy wrote: = How will it break them? swap backing only touches swap if there is = memory pressure, i.e.

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-04 Thread Yar Tikhiy
On Tue, Feb 27, 2007 at 04:03:30PM -0500, Mikhail Teterin wrote: On Tuesday 27 February 2007 15:53, Alex Kozlov wrote: = Yes, I switched to swap-backed md already. But the malloc-based variety is = currently the _default_ (see /etc/defaults/rc.conf)... = Bad default. Filing a PR. Keep

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-04 Thread Alex Kozlov
On Sun, Mar 04, 2007 at 10:59:46AM +0300, Yar Tikhiy wrote: On Tue, Feb 27, 2007 at 04:03:30PM -0500, Mikhail Teterin wrote: On Tuesday 27 February 2007 15:53, Alex Kozlov wrote: = Yes, I switched to swap-backed md already. But the malloc-based variety is = currently the _default_

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-03-04 Thread Kris Kennaway
On Sun, Mar 04, 2007 at 10:59:46AM +0300, Yar Tikhiy wrote: On Tue, Feb 27, 2007 at 04:03:30PM -0500, Mikhail Teterin wrote: On Tuesday 27 February 2007 15:53, Alex Kozlov wrote: = Yes, I switched to swap-backed md already. But the malloc-based variety is = currently the _default_

panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Mikhail Teterin
The memory-mounted /tmp filled up on this 6.2-PRERELEASE system (as of Nov 7). Unfortunately, instead of the process existing due to ENOSPC, the entire system paniced: [...] g_vfs_done():md0[WRITE(offset=982335488, length=131072)]error = 28 g_vfs_done():md0[WRITE(offset=982466560,

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Alex Kozlov
On Tue, Feb 27, 2007 at 10:59:08AM -0500, Mikhail Teterin wrote: /tmp's space allocation (after reboot) is as follows: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/md0 2026030 3552 1860396 0%/tmp Note, that it is supposed to hold 2Gb, but was filled up and

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Mikhail Teterin
On Tuesday 27 February 2007 11:41, Alex Kozlov wrote: = On Tue, Feb 27, 2007 at 10:59:08AM -0500, Mikhail Teterin wrote: = /tmp's space allocation (after reboot) is as follows: = =Filesystem 1K-blocks Used Avail Capacity Mounted on =/dev/md0 2026030 3552 1860396 0%/tmp =

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Alex Kozlov
On Tue, Feb 27, 2007 at 02:48:11PM -0500, Mikhail Teterin wrote: On Tuesday 27 February 2007 11:41, Alex Kozlov wrote: = On Tue, Feb 27, 2007 at 10:59:08AM -0500, Mikhail Teterin wrote: = /tmp's space allocation (after reboot) is as follows: = =Filesystem 1K-blocks Used Avail

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Mikhail Teterin
On Tuesday 27 February 2007 15:53, Alex Kozlov wrote: = Yes, I switched to swap-backed md already. But the malloc-based variety is = currently the _default_ (see /etc/defaults/rc.conf)... = Bad default. Filing a PR. = Creation of a 2Gb malloc-based md should've failed on a machine with =

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Kris Kennaway
Documented in the manpage, use swap backing or reserve enough space. Kris On Tue, Feb 27, 2007 at 10:59:08AM -0500, Mikhail Teterin wrote: The memory-mounted /tmp filled up on this 6.2-PRERELEASE system (as of Nov 7). Unfortunately, instead of the process existing due to ENOSPC, the entire

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Mikhail Teterin
On Tuesday 27 February 2007 16:09, Kris Kennaway wrote: = Documented in the manpage, use swap backing or reserve enough space. = = Kris The strings panic and -o reserve are mentioned in neither mdmfs(8) nor in rc.conf(5)... Is one supposed to look elsewhere? Worse, the use of malloc-based mds

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Kris Kennaway
On Tue, Feb 27, 2007 at 04:24:21PM -0500, Mikhail Teterin wrote: On Tuesday 27 February 2007 16:09, Kris Kennaway wrote: = Documented in the manpage, use swap backing or reserve enough space. = = Kris The strings panic and -o reserve are mentioned in neither mdmfs(8) nor in rc.conf(5)...

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Kris Kennaway
On Tue, Feb 27, 2007 at 04:46:57PM -0500, Michael Proto wrote: Kris Kennaway wrote: On Tue, Feb 27, 2007 at 04:24:21PM -0500, Mikhail Teterin wrote: The strings panic and -o reserve are mentioned in neither mdmfs(8) nor in rc.conf(5)... Is one supposed to look elsewhere? Yes,

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Michael Proto
Kris Kennaway wrote: On Tue, Feb 27, 2007 at 04:24:21PM -0500, Mikhail Teterin wrote: The strings panic and -o reserve are mentioned in neither mdmfs(8) nor in rc.conf(5)... Is one supposed to look elsewhere? Yes, mdconfig, which is what creates the device (mdmfs is a legacy wrapper for

Re: panic: kmem_malloc(16384): kmem_map too small: md-mounted /tmp filled up

2007-02-27 Thread Michael Proto
Kris Kennaway wrote: On Tue, Feb 27, 2007 at 04:24:21PM -0500, Mikhail Teterin wrote: The strings panic and -o reserve are mentioned in neither mdmfs(8) nor in rc.conf(5)... Is one supposed to look elsewhere? Yes, mdconfig, which is what creates the device (mdmfs is a legacy wrapper for