From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 18 13:42:06 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4EEC8106566B for ; Sun, 18 Mar 2012 13:42:06 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id D2FFE8FC14 for ; Sun, 18 Mar 2012 13:42:05 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so2186398wib.13 for ; Sun, 18 Mar 2012 06:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=CvAqu9xirNIASZ8dKTEid878aF4XiqtMlKlxNrDl/pk=; b=e7WBhCOeNCmL8NEkFNIlnrliy10OOtgk4pb8y4jS77RuDsSRrGW0JTzONIMQepB5Pc /V0N6b6QAHmxJGwsoCEuKuZ9RveWS0jrqrYbpEVBCedhfgM5UxPhwezMKJ9WM1TR0Syw o3HVl3EWsceUTtFygXOtEYLuAy/b11cAr4WOS9UNmvlSfsNt011sNPYRicMnLHv+bWBP GwMhIKAxnJb2qQlR96XlWY0eyO1BtIBvinPHAL2m7RVHqS/P41jcZBgdT+aJsb0WwQQS mzkbb2UaKoGEDm6YYTNxW+ziXoAg2zlKgDKi+sT1iyUfzzy7kRl0pmuKI4eJ65ZU3jek tB/w== Received: by 10.180.103.97 with SMTP id fv1mr12567658wib.17.1332078119456; Sun, 18 Mar 2012 06:41:59 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id gg2sm27137987wib.7.2012.03.18.06.41.57 (version=SSLv3 cipher=OTHER); Sun, 18 Mar 2012 06:41:58 -0700 (PDT) Date: Sun, 18 Mar 2012 13:41:56 +0000 From: RW To: freebsd-hackers@freebsd.org Message-ID: <20120318134156.61d6db61@gumby.homeunix.com> In-Reply-To: <20120318.130139.003.1@DOMY-PC> References: <20120318.130139.003.1@DOMY-PC> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: Re: BUG: REL 9.0 - MD malloc of custom sector size X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Mar 2012 13:42:06 -0000 On Sun, 18 Mar 2012 14:01:39 +0100 rank1seeker@gmail.com wrote: > man mdconfig > ---- > -S sectorsize to use for malloc backed device > ---- >=20 > I want to create MD device, with sector size of 4 Kb. >=20 > It is CRITICAL to NOT append ANY suffixes, when specifing size, via > '-s' flag in order to use sectors, to set it's size. # mdconfig -a -t > malloc -S 4096 -s 32768 >=20 > This should created dev of 128 Mb in size. > 32768 sectors * 4 Kb each =3D 131072 Kb =3D 128 Mb > Not! It created dev of 16 Mb in size, because sector size remained at > 512 bytes. =46rom mdconfig 8 "Size is the number of 512 byte sectors unless ..." Looks to me like it's doing what it said it would. BTW are you sure you want to use "-t malloc". This keeps the files (even the deleted ones) in memory unconditionally while ordinary process memory is paged-out.=20