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



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
= > 768Mb of RAM, shouldn't it have?
= Only if you set '-o reserve'. Memory for malloc-based md was allocated
= dynamically.

But malloc can only allocate from RAM, right? So the amount of RAM is the hard
limit, which a malloc-based md can not exceed even in theory. This means,
md-creation should've failed...

In fact, the limit should, of course, be even lower -- and mdmfs should be
smart enough to substract the sizes of other kernel memory chunks from the
maximum.

Since even that would still not be a guarantee against running out, the system
should be able to recover gracefully instead of panicing. Do you agree?

-mi
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: memory reported under linux higher that allocated?
    ... I have 4 gig of RAM and when I allocate 3 gig the utilities show that my application is using 87% of the available RAM, so it's a half a gig more, why? ... I count all malloc by incrementing a "m" variable and I decrement the same "m" variable when doing free and at the program exit I display the value of "m" and it is zero. ...
    (Fedora)
  • Re: JRuby performance questions answered
    ... a reference-counting collector probably gives no more fragmentation than ... No joke sometimes I agree and malloc is just 'good enough':) ... than RAM nowadays, that may matter less. ... AFAIK--maybe class variables and local variables. ...
    (comp.lang.ruby)
  • Re: another error with md malloc based fs
    ... my 1,6 Gigs of free Memory, what was faulty on that???? ... can find, and you can never use that ram, while a programm ... i have read the thread abaut malloc, ... > Michael Schuh ...
    (freebsd-stable)
  • Re: malloc problems with MySQL?
    ... I have an SMP i386 machine with 2G RAM on which I would like to test MySQL. ... MySQL gets errno 12 when trying to allocate that amount of RAM. ... What else is needed to make it work with the new malloc implementation? ...
    (freebsd-current)
  • Re: When to check the return value of malloc
    ... your small RAM requestor) succeeds in getting RAM for video editing, ... Not checking the return of malloc() is simply incompetent. ... It depends if the video editor has deliberately tailored his request to the ... applications at the same time. ...
    (comp.lang.c)