ceph-osd cpu usage
Hello list,
my main problem right now is that ceph does not scale for me (more vms using rbd). It does not scale as the ceph-osd is using all my CPU core all the time (8 cores) with just 4 SSDs. The SSDs are far away from being loaded.
What is the best way to find out what the ceph-osd process is doing all the time?
A gperf graph is attached.
Greets,
Stefan
cpu usage is same for read and write ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: [email protected]
Envoyé: Jeudi 15 Novembre 2012 11:56:37
Objet: ceph-osd cpu usage
Hello list,
my main problem right now is that ceph does not scale for me (more vms using rbd). It does not scale as the ceph-osd is using all my CPU core all the time (8 cores) with just 4 SSDs. The SSDs are far away from being loaded.
What is the best way to find out what the ceph-osd process is doing all the time?
A gperf graph is attached.
Greets,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 15.11.2012 12:18, schrieb Alexandre DERUMIER:
Quoted 1 line
cpu usage is same for read and write ?
no for read it is just around 25%. And i get "full" (limited by rbd / librbd) 23.000 iops per vm.
Quoted 14 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: [email protected]
Envoyé: Jeudi 15 Novembre 2012 11:56:37
Objet: ceph-osd cpu usageHello list,
my main problem right now is that ceph does not scale for me (more vms using rbd). It does not scale as the ceph-osd is using all my CPU core all the time (8 cores) with just 4 SSDs. The SSDs are far away from being loaded.
Quoted 8 lines
What is the best way to find out what the ceph-osd process is doing all the time?
A gperf graph is attached.
Greets,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Out of curiosity, does it help much if you disable crc32c calculations? Use the "nocrc" option in your ceph.conf file. I've had my eye on crcutil as an alternative to how we do crc32c now.
http://code.google.com/p/crcutil/
Mark
Quoted 26 lines · Stefan Priebe - Profihost AG
Am 15.11.2012 12:18, schrieb Alexandre DERUMIER:
Quoted 1 line
cpu usage is same for read and write ?
no for read it is just around 25%. And i get "full" (limited by rbd / librbd) 23.000 iops per vm.
Quoted 19 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: [email protected]
Envoyé: Jeudi 15 Novembre 2012 11:56:37
Objet: ceph-osd cpu usageHello list,
my main problem right now is that ceph does not scale for me (more vms using rbd). It does not scale as the ceph-osd is using all my CPU core all the time (8 cores) with just 4 SSDs. The SSDs are far away from being loaded.
What is the best way to find out what the ceph-osd process is doing all the time?
A gperf graph is attached.
Quoted 7 lines
Quoted 3 lines
Greets,
Stefan--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Stefan Priebe - Profihost AG
Hello list,
my main problem right now is that ceph does not scale for me (more vms using rbd). It does not scale as the ceph-osd is using all my CPU core all the time (8 cores) with just 4 SSDs. The SSDs are far away from being loaded.
What is the best way to find out what the ceph-osd process is doing all the time?
A gperf graph is attached.
Hmm, most significant time seems to be in the allocator and doing fsetxattr(2) (10%!). Also some path traversal stuff.
Can you try the wip-fd-simple-cache branch, which tries to spend less time closing and reopening files? I'm curious how much of a different it will make for you for both IOPS and CPU utilization.
It is also possible to use leveldb for most attrs. If you set 'filestore xattr use omap = true' it should put most attrs in leveldb.
sage
Am 15.11.2012 16:14, schrieb Sage Weil:
Quoted 10 lines · Stefan Priebe - Profihost AG
Quoted 9 lines
Hello list,
my main problem right now is that ceph does not scale for me (more vms using rbd). It does not scale as the ceph-osd is using all my CPU core all the time (8 cores) with just 4 SSDs. The SSDs are far away from being loaded.
What is the best way to find out what the ceph-osd process is doing all the time?
Quoted 8 lines
Quoted 1 line
A gperf graph is attached.
Hmm, most significant time seems to be in the allocator and doing fsetxattr(2) (10%!). Also some path traversal stuff.
Can you try the wip-fd-simple-cache branch, which tries to spend less time closing and reopening files? I'm curious how much of a different it will make for you for both IOPS and CPU utilization.
Will try that this evening.
Quoted 2 lines
It is also possible to use leveldb for most attrs. If you set 'filestore xattr use omap = true' it should put most attrs in leveldb.
Do i have to recreate the cephfs?
Stefan
Am 15.11.2012 16:12, schrieb Mark Nelson:
Quoted 5 lines
Out of curiosity, does it help much if you disable crc32c calculations? Use the "nocrc" option in your ceph.conf file. I've had my eye on crcutil as an alternative to how we do crc32c now.
Will try that how and where to i set the nocrc option?
Is it
[global]
nocrc = true
Stefan
Quoted 5 lines · Stefan Priebe
Am 15.11.2012 16:12, schrieb Mark Nelson:
Quoted 4 lines
Out of curiosity, does it help much if you disable crc32c calculations? Use the "nocrc" option in your ceph.conf file. I've had my eye on crcutil as an alternative to how we do crc32c now.
Quoted 7 lines
Quoted 1 line
Will try that how and where to i set the nocrc option?
Is it
[global]
nocrc = true
ms nocrc = true
sage
Hi Mark,
Am 15.11.2012 16:12, schrieb Mark Nelson:
Quoted 7 lines
Out of curiosity, does it help much if you disable crc32c calculations? Use the "nocrc" option in your ceph.conf file. I've had my eye on crcutil as an alternative to how we do crc32c now.
http://code.google.com/p/crcutil/
Mark
This changes nothing. CPU Load doesn't change on osds. This was a bit tricky ;-) i had to set nocrc on kvm host as well otherwise kvm wasn't starting due to bad crc.
Greets,
Stefan
Am 15.11.2012 16:14, schrieb Sage Weil:
Quoted 3 lines · Stefan Priebe - Profihost AG
Hmm, most significant time seems to be in the allocator and doing fsetxattr(2) (10%!). Also some path traversal stuff.
Yes fsetxattr seems to be CPU hungry.
Quoted 3 lines
Can you try the wip-fd-simple-cache branch, which tries to spend less time closing and reopening files? I'm curious how much of a different it will make for you for both IOPS and CPU utilization.
It seems to give me around 1000 iops across 3 VMs.
Quoted 2 lines
It is also possible to use leveldb for most attrs. If you set 'filestore xattr use omap = true' it should put most attrs in leveldb.
Tried this but this raises CPU by 20%.
Any other ideas how to reduce ceph-osd while doing randwrite?
Randread gives me with 3 VMs: 60.000 iops
Randwrite gives me with 3 VMs: 25.000 iops
Stefan
Quoted 4 lines
Quoted 4 lines
Any other ideas how to reduce ceph-osd while doing randwrite?
Randread gives me with 3 VMs: 60.000 iops
Randwrite gives me with 3 VMs: 25.000 iops
Great to see that read scale !
For randwrite, what is the bottleneck now with filestore xattr use omap = true ?
Always cpu ?
----- Mail original -----
De: "Stefan Priebe" <[email protected]>
À: "Sage Weil" <[email protected]>
Cc: [email protected]
Envoyé: Jeudi 15 Novembre 2012 21:26:06
Objet: Re: ceph-osd cpu usage
Am 15.11.2012 16:14, schrieb Sage Weil:
Quoted 3 lines · Stefan Priebe - Profihost AG
Hmm, most significant time seems to be in the allocator and doing fsetxattr(2) (10%!). Also some path traversal stuff.
Yes fsetxattr seems to be CPU hungry.
Quoted 3 lines
Can you try the wip-fd-simple-cache branch, which tries to spend less time closing and reopening files? I'm curious how much of a different it will make for you for both IOPS and CPU utilization.
It seems to give me around 1000 iops across 3 VMs.
Quoted 2 lines
It is also possible to use leveldb for most attrs. If you set 'filestore xattr use omap = true' it should put most attrs in leveldb.
Tried this but this raises CPU by 20%.
Any other ideas how to reduce ceph-osd while doing randwrite?
Randread gives me with 3 VMs: 60.000 iops
Randwrite gives me with 3 VMs: 25.000 iops
Stefan
Signature · 7 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 16.11.2012 09:41, schrieb Alexandre DERUMIER:
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Any other ideas how to reduce ceph-osd while doing randwrite?
Randread gives me with 3 VMs: 60.000 iops
Randwrite gives me with 3 VMs: 25.000 iopsGreat to see that read scale !
Yes that works fine.
Quoted 1 line
For randwrite, what is the bottleneck now with filestore xattr use omap = true ?
Oh no the result was still with default fsetxattr. Filestore xattr use omap added another 20% load an resultet in much lower iops. Seems i wasn't clear enough about that.
Stefan