-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create disk is too slow #143
Comments
What did ceph-iscsi-api do when i created a new lun? |
It's definitely not optimized for creating high numbers of LUNs -- the expected use-case would be just a handful of LUNs. I believe currently each LUN creation causes a full rescan of LIO's configfs filesystem, which will take exponentially more time as more LUNs are added. |
@dillaman can you give me some advices to optimize creating high numbers of LUNs? |
You can probably run it under the python profiler to see where it's spending all its time during a LUN addition. |
from the log processing cost a lot of time. |
Now processing is serial, Can i change it to parallel? |
I'd imagine the real problem is that it is doing unnecessary work when adding a new disk (e.g. perhaps it's reconfiguring all existing disks when adding a new LUN). It just needs to be investigated. Of course, I also would give far warning that with hundreds of disks, you are running in a "unique" configuration that probably won't see too much testing. |
Does every lun creation take about 50 seconds or the later ones? Were you using a lot of gateways and if so do you have this patch: |
@mikechristie the later ones. |
@dillaman Now rtslib-fb allow creating more than 256 LUNs per target, hundreds of disks will be common. |
@swimfish09 my point is that just because you can technically do something, it doesn’t mean that it should be considered best or standard practice. |
@dillaman fine, is there any technical document that i can view? |
@swimfish09 There is no spec type of document. |
i created a patch here. |
I have about 250 luns.
When i use curl to create new lun, it is cost about 51s, even it is about 1g disk.
Is there a way to repid this?
curl --insecure --user admin:admin -d mode=create -d size=1g -d pool=rbd_gw -X PUT http://10.142.90.34:8778/api/disk/rbd.zhouqi_test03
The text was updated successfully, but these errors were encountered: