LWN.net Logo

Re: [patch for playing] 2.5.65 patch to support > 256 disks

From:  Andrew Morton <akpm@digeo.com>
To:  dougg@torque.net
Subject:  Re: [patch for playing] 2.5.65 patch to support > 256 disks
Date:  Sat, 22 Mar 2003 04:05:50 -0800
Cc:  pbadari@us.ibm.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Jens Axboe <axboe@suse.de>

Douglas Gilbert <dougg@torque.net> wrote:
>
> Andrew Morton wrote:
> > Douglas Gilbert <dougg@torque.net> wrote:
> > 
> >>>Slab:           464364 kB
> >>
> > 
> > It's all in slab.
> > 
> > 
> >>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?
> > 
> > 
> > Let's see all of /pro/slabinfo please.
> 
> Andrew,
> Attachments are /proc/slabinfo pre and post:
>   $ modprobe scsi_debug add_host=42 num_devs=2
> which adds 84 pseudo disks.
> 

OK, thanks.  So with 48 disks you've lost five megabytes to blkdev_requests
and deadline_drq objects.  With 4000 disks, you're toast.  That's enough
request structures to put 200 gigabytes of memory under I/O ;)

We need to make the request structures dymanically allocated for other
reasons (which I cannot immediately remember) but it didn't happen.  I guess
we have some motivation now.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


(Log in to post comments)

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds