All of lore.kernel.org
 help / color / mirror / Atom feed
* limit of maximum number of rbd devices that can be mapped
@ 2012-10-18  2:15 Christian Huang
  2012-10-18  2:18 ` Alex Elder
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Huang @ 2012-10-18  2:15 UTC (permalink / raw)
  To: ceph-devel

Hi,
    what is the maximum number of rbd devices that can be mapped on a
single host?
    we recently did a test to mount a large number of rbd devices and
hit a wall around 230
    with the following message

with 230 rbd devices already mapped, the next one yielded this.
Console output
wistor@wistor-002:~$ sudo rbd map test299
add failed: (16) Device or resource busy

dmesg
[77962.346749] register_blkdev: failed to get major for rbd229

Chris.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: limit of maximum number of rbd devices that can be mapped
  2012-10-18  2:15 limit of maximum number of rbd devices that can be mapped Christian Huang
@ 2012-10-18  2:18 ` Alex Elder
  2012-10-18  3:12   ` Christian Huang
  2012-11-02 10:59   ` Danny Al-Gaaf
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Elder @ 2012-10-18  2:18 UTC (permalink / raw)
  To: Christian Huang; +Cc: ceph-devel

On 10/17/2012 09:15 PM, Christian Huang wrote:
> Hi,
>     what is the maximum number of rbd devices that can be mapped on a
> single host?
>     we recently did a test to mount a large number of rbd devices and
> hit a wall around 230
>     with the following message

That sounds about right.  We were just discussing this earlier
this week.  It's limited at the moment by the number of major
device numbers available on the system, and I think you found
that limit.  We would obviously like to have a solution for
this but we've only just started considering options.

					-Alex

> with 230 rbd devices already mapped, the next one yielded this.
> Console output
> wistor@wistor-002:~$ sudo rbd map test299
> add failed: (16) Device or resource busy
> 
> dmesg
> [77962.346749] register_blkdev: failed to get major for rbd229
> 
> Chris.
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: limit of maximum number of rbd devices that can be mapped
  2012-10-18  2:18 ` Alex Elder
@ 2012-10-18  3:12   ` Christian Huang
  2012-11-02 10:59   ` Danny Al-Gaaf
  1 sibling, 0 replies; 6+ messages in thread
From: Christian Huang @ 2012-10-18  3:12 UTC (permalink / raw)
  To: Alex Elder; +Cc: ceph-devel

Hi,
    i see,
    could this be relevant?
    SCSI disk limitations: Defining the number of disk devices on Linux
    http://publib.boulder.ibm.com/infocenter/dsichelp/ds6000ic/index.jsp?topic=%2Fcom.ibm.storage.smric.help.doc%2Ff2c_linuxscsilimit_2hsag9.html

    also from the description of the following 2 sections, it seems
this limit can be made much higher?
    http://www.makelinux.net/ldd3/chp-3-sect-2
    http://www.makelinux.net/ldd3/chp-16-sect-1

Best Regards.


On Thu, Oct 18, 2012 at 10:18 AM, Alex Elder <elder@inktank.com> wrote:
> On 10/17/2012 09:15 PM, Christian Huang wrote:
>> Hi,
>>     what is the maximum number of rbd devices that can be mapped on a
>> single host?
>>     we recently did a test to mount a large number of rbd devices and
>> hit a wall around 230
>>     with the following message
>
> That sounds about right.  We were just discussing this earlier
> this week.  It's limited at the moment by the number of major
> device numbers available on the system, and I think you found
> that limit.  We would obviously like to have a solution for
> this but we've only just started considering options.
>
>                                         -Alex
>
>> with 230 rbd devices already mapped, the next one yielded this.
>> Console output
>> wistor@wistor-002:~$ sudo rbd map test299
>> add failed: (16) Device or resource busy
>>
>> dmesg
>> [77962.346749] register_blkdev: failed to get major for rbd229
>>
>> Chris.
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: limit of maximum number of rbd devices that can be mapped
  2012-10-18  2:18 ` Alex Elder
  2012-10-18  3:12   ` Christian Huang
@ 2012-11-02 10:59   ` Danny Al-Gaaf
  2012-11-02 11:22     ` Sage Weil
  1 sibling, 1 reply; 6+ messages in thread
From: Danny Al-Gaaf @ 2012-11-02 10:59 UTC (permalink / raw)
  To: Alex Elder; +Cc: Christian Huang, ceph-devel

Am 18.10.2012 04:18, schrieb Alex Elder:
> On 10/17/2012 09:15 PM, Christian Huang wrote:
>> Hi,
>>     what is the maximum number of rbd devices that can be mapped on a
>> single host?
>>     we recently did a test to mount a large number of rbd devices and
>> hit a wall around 230
>>     with the following message
> 
> That sounds about right.  We were just discussing this earlier
> this week.  It's limited at the moment by the number of major
> device numbers available on the system, and I think you found
> that limit.  We would obviously like to have a solution for
> this but we've only just started considering options.

Any news on this? We have seen the same issues here.

IMO the RBD code should to something similar to some other block drivers:

1) reserve a major block number for RBD in general (or use the number
returned from the register_blkdev call, if there is no number we can
reserve in general for RBD, see [1])

2) Use this major number for all RBDs on this machine and handle each
new RBD via different minor numbers.

If we can agree on this I would take a look into it and send a patch.

Regards

Danny

[1]
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob_plain;f=Documentation/devices.txt;hb=HEAD

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: limit of maximum number of rbd devices that can be mapped
  2012-11-02 10:59   ` Danny Al-Gaaf
@ 2012-11-02 11:22     ` Sage Weil
  2012-11-02 12:28       ` Danny Al-Gaaf
  0 siblings, 1 reply; 6+ messages in thread
From: Sage Weil @ 2012-11-02 11:22 UTC (permalink / raw)
  To: Danny Al-Gaaf; +Cc: Alex Elder, Christian Huang, ceph-devel

On Fri, 2 Nov 2012, Danny Al-Gaaf wrote:
> Am 18.10.2012 04:18, schrieb Alex Elder:
> > On 10/17/2012 09:15 PM, Christian Huang wrote:
> >> Hi,
> >>     what is the maximum number of rbd devices that can be mapped on a
> >> single host?
> >>     we recently did a test to mount a large number of rbd devices and
> >> hit a wall around 230
> >>     with the following message
> > 
> > That sounds about right.  We were just discussing this earlier
> > this week.  It's limited at the moment by the number of major
> > device numbers available on the system, and I think you found
> > that limit.  We would obviously like to have a solution for
> > this but we've only just started considering options.
> 
> Any news on this? We have seen the same issues here.
> 
> IMO the RBD code should to something similar to some other block drivers:
> 
> 1) reserve a major block number for RBD in general (or use the number
> returned from the register_blkdev call, if there is no number we can
> reserve in general for RBD, see [1])
> 
> 2) Use this major number for all RBDs on this machine and handle each
> new RBD via different minor numbers.
> 
> If we can agree on this I would take a look into it and send a patch.

We should probably do what SCSI does, where the minor for each device 
jumps by 16 to leave room for partitions.

There was a thread on this a couple of weeks ago that mmy slow internet is 
preventing me from finding... :)

sage

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: limit of maximum number of rbd devices that can be mapped
  2012-11-02 11:22     ` Sage Weil
@ 2012-11-02 12:28       ` Danny Al-Gaaf
  0 siblings, 0 replies; 6+ messages in thread
From: Danny Al-Gaaf @ 2012-11-02 12:28 UTC (permalink / raw)
  To: Sage Weil; +Cc: Alex Elder, Christian Huang, ceph-devel

Am 02.11.2012 12:22, schrieb Sage Weil:
> On Fri, 2 Nov 2012, Danny Al-Gaaf wrote:
[...]
>> Any news on this? We have seen the same issues here.
>>
>> IMO the RBD code should to something similar to some other block drivers:
>>
>> 1) reserve a major block number for RBD in general (or use the number
>> returned from the register_blkdev call, if there is no number we can
>> reserve in general for RBD, see [1])
>>
>> 2) Use this major number for all RBDs on this machine and handle each
>> new RBD via different minor numbers.
>>
>> If we can agree on this I would take a look into it and send a patch.
> 
> We should probably do what SCSI does, where the minor for each device 
> jumps by 16 to leave room for partitions.

That's exactly what I would propose. I wasn't sure if we really need to
leave the room for the partitions, since I'm not sure if they really
need to have contiguous numbers, but I guess there are some tools which
expect it.

> There was a thread on this a couple of weeks ago that mmy slow internet is 
> preventing me from finding... :)

My internet connection isn't that slow here in Amsterdam ;-) ... but I
couldn't find another thread about this topic.

Do you remember if someone already is working on this?

Danny


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-02 12:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-18  2:15 limit of maximum number of rbd devices that can be mapped Christian Huang
2012-10-18  2:18 ` Alex Elder
2012-10-18  3:12   ` Christian Huang
2012-11-02 10:59   ` Danny Al-Gaaf
2012-11-02 11:22     ` Sage Weil
2012-11-02 12:28       ` Danny Al-Gaaf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.