From owner-freebsd-questions Sun Oct 7 18: 5:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from icc.cgu.chel.su (gw.csu.ru [195.54.14.5]) by hub.freebsd.org (Postfix) with ESMTP id F04DE37B403 for ; Sun, 7 Oct 2001 18:05:45 -0700 (PDT) Received: from mail.cgu.chel.su (mail.cgu.chel.su [195.54.14.68]) by icc.cgu.chel.su (8.11.6/8.11.6) with ESMTP id f9815ZP50206 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Mon, 8 Oct 2001 07:05:38 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: (from uucp@localhost) by mail.cgu.chel.su (8.11.6/8.11.2) with UUCP id f9815ZI03361; Mon, 8 Oct 2001 07:05:35 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Received: from localhost (localhost.cgu.chel.su [127.0.0.1]) by jane.poka.net (8.11.6/8.11.1) with ESMTP id f980qY800484; Mon, 8 Oct 2001 06:52:34 +0600 (YEKST) (envelope-from ilia@cgu.chel.su) Date: Mon, 8 Oct 2001 06:52:34 +0600 (YEKST) From: Ilia Chipitsine X-Sender: ilia@jane.poka.net To: Poul-Henning Kamp Cc: questions@FreeBSD.org Subject: Re: why it isn't possible to put more than 20Mb on the memory-based disk ? (system simply hangs) In-Reply-To: <1828.1002475715@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Salut, Poul-Henning Kamp ! On Sun, 7 Oct 2001, Poul-Henning Kamp wrote: > >> > >> man md > > > >and what ? > > malloc Backing store is allocated using malloc(9). Only one malloc- > bucket is used, which means that all md devices with malloc > backing must share the malloc-per-bucket-quota. The exact size > of this quota varies, in particular with the amount of RAM in > the system. The exact value can be determined with vmstat(8). it still doesn't make sense. I can successfully create memory based disk using MD_NSECT=120000, I'm able to mount it. "df" shows I have lots of free space on it. But when I try to put more than 20Mb on it, system hangs. "cp" process is in "MD sec" state with nice=-20. what's wrong ? $ vmstat procs memory page disks faults cpu r b w avm fre flt re pi po fr sr ad0 md0 in sy cs us sy id 1 1 0 63028 42020 72 1 2 0 40 0 0 0 538 622 554 5 6 89 $ (before I create and mount memory disk) did you try to put more than 20Mb on memory based disk ? (actually I need about 150-200Mb) Regards, (Наилучшие пожелания) Ilia Chipitsine (Илья Шипицин) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message