From: Douglas Gilbert <dougg@torque.net>
To: Badari Pulavarty <pbadari@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
Andrew Morton <akpm@digeo.com>
Subject: Re: [patch for playing] 2.5.65 patch to support > 256 disks
Date: Sat, 22 Mar 2003 21:00:33 +1000 [thread overview]
Message-ID: <3E7C4251.4010406@torque.net> (raw)
In-Reply-To: 200303211056.04060.pbadari@us.ibm.com
Badari Pulavarty wrote:
> Hi,
>
> Andries Brouwer recently submitted 32 bit dev_t patches,
> which are in 2.5.65-mm2. This patch applies on those patches to support
> more than 256 disks. This is for playing only.
>
> I tested this with 4000 disks using scsi_debug. I attached my actual
> disks (50) after 4000 scsi_debug disks. I am able to access my disks
> fine and do IO on them.
>
> Problems (so far):
>
> 1) sd.c - sd_index_bits[] arrys became big - need to be fixed.
>
> 2) 4000 disks eats up lots of low memory (~460 MB). Here is the
> /proc/meminfo output before & after insmod.
>
> Before:
> MemTotal: 3883276 kB
> MemFree: 3808028 kB
> Buffers: 3240 kB
> Cached: 41860 kB
> SwapCached: 0 kB
> Active: 45360 kB
> Inactive: 7288 kB
> HighTotal: 3014616 kB
> HighFree: 2961856 kB
> LowTotal: 868660 kB
> LowFree: 846172 kB
> SwapTotal: 2040244 kB
> SwapFree: 2040244 kB
> Dirty: 192 kB
> Writeback: 0 kB
> Mapped: 14916 kB
> Slab: 7164 kB
> Committed_AS: 12952 kB
> PageTables: 312 kB
> ReverseMaps: 1895
> ====
> After:
> MemTotal: 3883276 kB
> MemFree: 3224140 kB
> Buffers: 3880 kB
> Cached: 140376 kB
> SwapCached: 0 kB
> Active: 47512 kB
> Inactive: 105508 kB
> HighTotal: 3014616 kB
> HighFree: 2838144 kB
> LowTotal: 868660 kB
> LowFree: 385996 kB
> SwapTotal: 2040244 kB
> SwapFree: 2040244 kB
> Dirty: 92 kB
> Writeback: 0 kB
> Mapped: 16172 kB
> Slab: 464364 kB
> Committed_AS: 14996 kB
> PageTables: 412 kB
> ReverseMaps: 2209
Badari,
I poked around looking for data on the size issue.
Here are the byte sizes for the per device and per host
structures in scsi_debug and the scsi mid level for
i386, non-smp in lk 2.5.65:
sizeof(sdebug_dev_info)=60, sizeof(scsi_device)=376
sizeof(sdebug_host_info)=24, sizeof(Scsi_Host)=224
So for 4000 disks they should be responsible for about
2 MB.
The scsi_cmd_cache slab info went from this before those
84 pseudo disks were added:
# cat slabinfo_pre.txt
scsi_cmd_cache 3 11 356 1 1 1 : 32 16 :
22 301 6 5 0 0 43 : 3235 31 3264 0
to this afterwards:
# cat slabinfo_post.txt
scsi_cmd_cache 44 55 356 5 5 1 : 32 16 :
66 398 12 7 0 0 43 : 5837 40 5833 0
I did notice a rather large growth of nodes
in sysfs. For 84 added scsi_debug pseudo disks the number
of sysfs nodes went from 686 to 3347.
Does anybody know what is the per node memory cost of sysfs?
Doug Gilbert
next prev parent reply other threads:[~2003-03-22 11:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-21 18:56 [patch for playing] 2.5.65 patch to support > 256 disks Badari Pulavarty
2003-03-22 11:00 ` Douglas Gilbert [this message]
2003-03-22 11:04 ` Andrew Morton
2003-03-22 11:46 ` Douglas Gilbert
2003-03-22 12:05 ` Andrew Morton
2003-03-24 21:32 ` Badari Pulavarty
2003-03-24 22:22 ` Douglas Gilbert
2003-03-24 22:54 ` Badari Pulavarty
2003-03-25 0:10 ` Andrew Morton
2003-03-24 22:57 ` Badari Pulavarty
2003-03-25 10:56 ` Jens Axboe
2003-03-25 11:23 ` Jens Axboe
2003-03-25 11:37 ` Jens Axboe
2003-03-25 11:39 ` Nick Piggin
2003-03-25 12:01 ` Jens Axboe
2003-03-25 12:12 ` Nick Piggin
2003-03-25 12:35 ` Jens Axboe
2003-03-27 0:29 ` Badari Pulavarty
2003-03-27 9:18 ` Jens Axboe
2003-03-28 17:04 ` Badari Pulavarty
2003-03-28 18:41 ` Andries Brouwer
2003-03-29 1:39 ` Badari Pulavarty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E7C4251.4010406@torque.net \
--to=dougg@torque.net \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=pbadari@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox