OSD memory leaks?
A message that is not in the archive (sent off-list or not yet received): 4172429.450.1357580400977.JavaMail.dspano@it1
A message that is not in the archive (sent off-list or not yet received): 10953797.470.1357585419142.JavaMail.dspano@it1
Awesome! What version are you running (ceph-osd -v, include the hash)? -Sam
Quoted 116 lines · Dave Spano
This failed the first time I sent it, so I'm resending in plain text.
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Dave Spano" <[email protected]>
To: "Sébastien Han" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Monday, January 7, 2013 12:40:06 PM
Subject: Re: OSD memory leaks?Sam,
Attached are some heaps that I collected today. 001 and 003 are just after I started the profiler; 011 is the most recent. If you need more, or anything different let me know. Already the OSD in question is at 38% memory usage. As mentioned by Sèbastien, restarting ceph-osd keeps things going.
Not sure if this is helpful information, but out of the two OSDs that I have running, the first one (osd.0) is the one that develops this problem the quickest. osd.1 does have the same issue, it just takes much longer. Do the monitors hit the first osd in the list first, when there's activity?
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Samuel Just" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Friday, January 4, 2013 10:20:58 AM
Subject: Re: OSD memory leaks?Hi Sam,
Thanks for your answer and sorry the late reply.
Unfortunately I can't get something out from the profiler, actually I do but I guess it doesn't show what is supposed to show... I will keep on trying this. Anyway yesterday I just thought that the problem might be due to some over usage of some OSDs. I was thinking that the distribution of the primary OSD might be uneven, this could have explained that some memory leaks are more important with some servers. At the end, the repartition seems even but while looking at the pg dump I found something interesting in the scrub column, timestamps from the last scrubbing operation matched with times showed on the graph.
After this, I made some calculation, I compared the total number of scrubbing operation with the time range where memory leaks occurred. First of all check my setup:
root@c2-ceph-01 ~ # ceph osd tree
dumped osdmap tree epoch 859# id weight type name up/down reweight -1 12 pool default -3 12 rack lc2_rack33 -2 3 host c2-ceph-01 0 1 osd.0 up 1 1 1 osd.1 up 1 2 1 osd.2 up 1 -4 3 host c2-ceph-04 10 1 osd.10 up 1 11 1 osd.11 up 1 9 1 osd.9 up 1 -5 3 host c2-ceph-02 3 1 osd.3 up 1 4 1 osd.4 up 1 5 1 osd.5 up 1 -6 3 host c2-ceph-03 6 1 osd.6 up 1 7 1 osd.7 up 1 8 1 osd.8 up 1And there are the results:
* Ceph node 1 which has the most important memory leak performed 1608 in total and 1059 during the time range where memory leaks occured
* Ceph node 2, 1168 in total and 776 during the time range where memory leaks occured
* Ceph node 3, 940 in total and 94 during the time range where memory leaks occurred
* Ceph node 4, 899 in total and 191 during the time range where memory leaks occurredI'm still not entirely sure that the scrub operation causes the leak but the only relevant relation that I found...
Could it be that the scrubbing process doesn't release memory? Btw I was wondering, how ceph decides at what time it should run the scrubbing operation? I know that it's once a day and control by the following options
OPTION(osd_scrub_min_interval, OPT_FLOAT, 300)OPTION(osd_scrub_max_interval, OPT_FLOAT, 60*60*24)But how ceph determined the time where the operation started, during cluster creation probably?
I just checked the options that control OSD scrubbing and found that by default:
OPTION(osd_max_scrubs, OPT_INT, 1)So that might explain why only one OSD uses a lot of memory.
My dirty workaround at the moment is to performed a check of memory use by every OSD and restart it if it uses more than 25% of the total memory. Also note that on ceph 1, 3 and 4 it's always one OSD that uses a lot of memory, for ceph 2 only the mem usage is high but almost the same for all the OSD process.
Quoted 107 lines
Thank you in advance.
--
Regards,
Sébastien Han.Quoted 99 lines · Samuel Just
Sorry, it's been very busy. The next step would to try to get a heap dump. You can start a heap profile on osd N by:
ceph osd tell N heap
start_profilerand you can get it to dump the collected profile using
ceph osd tell N heap dump.
The dumps should show up in the osd log directory.
Assuming the heap profiler is working correctly, you can look at the dump using pprof in google-perftools.
Quoted 83 lines · Sébastien Han
No more suggestions? :(
--
Regards,
Sébastien Han.Quoted 76 lines · Sébastien Han
Nothing terrific...
Kernel logs from my clients are full of "libceph: osd4 172.20.11.32:6801 socket closed"
I saw this somewhere on the tracker.
Does this harm?
Thanks.
--
Regards,
Sébastien Han.Quoted 58 lines · Samuel Just
What is the workload like?
-SamQuoted 53 lines · Sébastien Han
Hi,
No, I don't see nothing abnormal in the network stats. I don't see anything in the logs... :(
The weird thing is that one node over 4 seems to take way more memory than the others...--
Regards,
Sébastien Han.Quoted 40 lines · Sébastien Han
Hi,
No, I don't see nothing abnormal in the network stats. I don't see anything in the logs... :( The weird thing is that one node over 4 seems to take way more memory than the others...
--
Regards,
Sébastien Han.Quoted 25 lines · Samuel Just
Are you having network hiccups? There was a bug noticed recently that could cause a memory leak if nodes are being marked up and down. -Sam
Quoted 19 lines · Sébastien Han
Hi guys,
Today looking at my graphs I noticed that one over 4 ceph nodes used a lot of memory. It keeps growing and growing.
See the graph attached to this mail.
I run 0.48.2 on Ubuntu 12.04.The other nodes also grow, but slowly than the first one.
I'm not quite sure about the information that I have to provide. So let me know. The only thing I can say is that the load haven't increase that much this week. It seems to be consuming and not giving back the memory.
Thank you in advance.
--
Regards,
Sébastien Han.
--
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
I guess he runs Argonaut as well.
More suggestions about this problem?
Thanks!
--
Regards,
Sébastien Han.
Quoted 228 lines · Samuel Just
Awesome! What version are you running (ceph-osd -v, include the hash)? -Sam
Quoted 116 lines · Dave Spano
This failed the first time I sent it, so I'm resending in plain text.
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Dave Spano" <[email protected]>
To: "Sébastien Han" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Monday, January 7, 2013 12:40:06 PM
Subject: Re: OSD memory leaks?Sam,
Attached are some heaps that I collected today. 001 and 003 are just after I started the profiler; 011 is the most recent. If you need more, or anything different let me know. Already the OSD in question is at 38% memory usage. As mentioned by Sèbastien, restarting ceph-osd keeps things going.
Not sure if this is helpful information, but out of the two OSDs that I have running, the first one (osd.0) is the one that develops this problem the quickest. osd.1 does have the same issue, it just takes much longer. Do the monitors hit the first osd in the list first, when there's activity?
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Samuel Just" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Friday, January 4, 2013 10:20:58 AM
Subject: Re: OSD memory leaks?Hi Sam,
Thanks for your answer and sorry the late reply.
Unfortunately I can't get something out from the profiler, actually I do but I guess it doesn't show what is supposed to show... I will keep on trying this. Anyway yesterday I just thought that the problem might be due to some over usage of some OSDs. I was thinking that the distribution of the primary OSD might be uneven, this could have explained that some memory leaks are more important with some servers. At the end, the repartition seems even but while looking at the pg dump I found something interesting in the scrub column, timestamps from the last scrubbing operation matched with times showed on the graph.
After this, I made some calculation, I compared the total number of scrubbing operation with the time range where memory leaks occurred. First of all check my setup:
root@c2-ceph-01 ~ # ceph osd tree
dumped osdmap tree epoch 859# id weight type name up/down reweight -1 12 pool default -3 12 rack lc2_rack33 -2 3 host c2-ceph-01 0 1 osd.0 up 1 1 1 osd.1 up 1 2 1 osd.2 up 1 -4 3 host c2-ceph-04 10 1 osd.10 up 1 11 1 osd.11 up 1 9 1 osd.9 up 1 -5 3 host c2-ceph-02 3 1 osd.3 up 1 4 1 osd.4 up 1 5 1 osd.5 up 1 -6 3 host c2-ceph-03 6 1 osd.6 up 1 7 1 osd.7 up 1 8 1 osd.8 up 1And there are the results:
* Ceph node 1 which has the most important memory leak performed 1608 in total and 1059 during the time range where memory leaks occured
* Ceph node 2, 1168 in total and 776 during the time range where memory leaks occured
* Ceph node 3, 940 in total and 94 during the time range where memory leaks occurred
* Ceph node 4, 899 in total and 191 during the time range where memory leaks occurredI'm still not entirely sure that the scrub operation causes the leak but the only relevant relation that I found...
Could it be that the scrubbing process doesn't release memory? Btw I was wondering, how ceph decides at what time it should run the scrubbing operation? I know that it's once a day and control by the following options
OPTION(osd_scrub_min_interval, OPT_FLOAT, 300)OPTION(osd_scrub_max_interval, OPT_FLOAT, 60*60*24)But how ceph determined the time where the operation started, during cluster creation probably?
I just checked the options that control OSD scrubbing and found that by default:
OPTION(osd_max_scrubs, OPT_INT, 1)So that might explain why only one OSD uses a lot of memory.
My dirty workaround at the moment is to performed a check of memory use by every OSD and restart it if it uses more than 25% of the total memory. Also note that on ceph 1, 3 and 4 it's always one OSD that uses a lot of memory, for ceph 2 only the mem usage is high but almost the same for all the OSD process.
Quoted 107 lines
Thank you in advance.
--
Regards,
Sébastien Han.Quoted 99 lines · Samuel Just
Sorry, it's been very busy. The next step would to try to get a heap dump. You can start a heap profile on osd N by:
ceph osd tell N heap
start_profilerand you can get it to dump the collected profile using
ceph osd tell N heap dump.
The dumps should show up in the osd log directory.
Assuming the heap profiler is working correctly, you can look at the dump using pprof in google-perftools.
Quoted 83 lines · Sébastien Han
No more suggestions? :(
--
Regards,
Sébastien Han.Quoted 76 lines · Sébastien Han
Nothing terrific...
Kernel logs from my clients are full of "libceph: osd4 172.20.11.32:6801 socket closed"
I saw this somewhere on the tracker.
Does this harm?
Thanks.
--
Regards,
Sébastien Han.Quoted 58 lines · Samuel Just
What is the workload like?
-SamQuoted 53 lines · Sébastien Han
Hi,
No, I don't see nothing abnormal in the network stats. I don't see anything in the logs... :(
The weird thing is that one node over 4 seems to take way more memory than the others...--
Regards,
Sébastien Han.Quoted 40 lines · Sébastien Han
Hi,
No, I don't see nothing abnormal in the network stats. I don't see anything in the logs... :( The weird thing is that one node over 4 seems to take way more memory than the others...
--
Regards,
Sébastien Han.Quoted 25 lines · Samuel Just
Are you having network hiccups? There was a bug noticed recently that could cause a memory leak if nodes are being marked up and down. -Sam
Quoted 19 lines · Sébastien Han
Hi guys,
Today looking at my graphs I noticed that one over 4 ceph nodes used a lot of memory. It keeps growing and growing.
See the graph attached to this mail.
I run 0.48.2 on Ubuntu 12.04.The other nodes also grow, but slowly than the first one.
I'm not quite sure about the information that I have to provide. So let me know. The only thing I can say is that the load haven't increase that much this week. It seems to be consuming and not giving back the memory.
Thank you in advance.
--
Regards,
Sébastien Han.
Quoted 4 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
Yes, I'm using argonaut.
I've got 38 heap files from yesterday. Currently, the OSD in question is using 91.2% of memory according to top, and staying there. I initially thought it would go until the OOM killer started killing processes, but I don't see anything funny in the system logs that indicate that.
On the other hand, the ceph-osd process on osd.1 is using far less memory.
osd.0
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9151 root 20 0 20.4g 14g 2548 S 1 91.2 517:58.71 ceph-osd
osd.1
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 10785 root 20 0 673m 310m 5164 S 3 1.9 107:04.39 ceph-osd
Here's what tcmalloc says when I run ceph osd tell 0 heap stats:
2013-01-09 11:09:36.778675 7f62aae23700 0 log [INF] : osd.0tcmalloc heap stats:------------------------------------------------ 2013-01-09 11:09:36.779113 7f62aae23700 0 log [INF] : MALLOC: 210884768 ( 201.1 MB) Bytes in use by application 2013-01-09 11:09:36.779348 7f62aae23700 0 log [INF] : MALLOC: + 89026560 ( 84.9 MB) Bytes in page heap freelist 2013-01-09 11:09:36.779928 7f62aae23700 0 log [INF] : MALLOC: + 7926512 ( 7.6 MB) Bytes in central cache freelist 2013-01-09 11:09:36.779951 7f62aae23700 0 log [INF] : MALLOC: + 144896 ( 0.1 MB) Bytes in transfer cache freelist 2013-01-09 11:09:36.779972 7f62aae23700 0 log [INF] : MALLOC: + 11046512 ( 10.5 MB) Bytes in thread cache freelists 2013-01-09 11:09:36.780013 7f62aae23700 0 log [INF] : MALLOC: + 5177344 ( 4.9 MB) Bytes in malloc metadata 2013-01-09 11:09:36.780030 7f62aae23700 0 log [INF] : MALLOC: ------------ 2013-01-09 11:09:36.780056 7f62aae23700 0 log [INF] : MALLOC: = 324206592 ( 309.2 MB) Actual memory used (physical + swap) 2013-01-09 11:09:36.780081 7f62aae23700 0 log [INF] : MALLOC: + 126177280 ( 120.3 MB) Bytes released to OS (aka unmapped) 2013-01-09 11:09:36.780112 7f62aae23700 0 log [INF] : MALLOC: ------------ 2013-01-09 11:09:36.780127 7f62aae23700 0 log [INF] : MALLOC: = 450383872 ( 429.5 MB) Virtual address space used 2013-01-09 11:09:36.780152 7f62aae23700 0 log [INF] : MALLOC: 2013-01-09 11:09:36.780168 7f62aae23700 0 log [INF] : MALLOC: 37492 Spans in use 2013-01-09 11:09:36.780330 7f62aae23700 0 log [INF] : MALLOC: 51 Thread heaps in use 2013-01-09 11:09:36.780359 7f62aae23700 0 log [INF] : MALLOC: 4096 Tcmalloc page size 2013-01-09 11:09:36.780384 7f62aae23700 0 log [INF] : ------------------------------------------------
Dave Spano
Optogenics
Systems Administrator
----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Samuel Just" <[email protected]>
Cc: "Dave Spano" <[email protected]>, "ceph-devel" <[email protected]>
Sent: Wednesday, January 9, 2013 10:20:43 AM
Subject: Re: OSD memory leaks?
I guess he runs Argonaut as well.
More suggestions about this problem?
Thanks!
Signature · 2 lines
Regards, Sébastien Han.
Quoted 221 lines · Samuel Just
Awesome! What version are you running (ceph-osd -v, include the hash)? -Sam
Quoted 216 lines · Dave Spano
This failed the first time I sent it, so I'm resending in plain text.
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Dave Spano" <[email protected]>
To: "Sébastien Han" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Monday, January 7, 2013 12:40:06 PM
Subject: Re: OSD memory leaks?Sam,
Attached are some heaps that I collected today. 001 and 003 are just after I started the profiler; 011 is the most recent. If you need more, or anything different let me know. Already the OSD in question is at 38% memory usage. As mentioned by Sèbastien, restarting ceph-osd keeps things going.
Not sure if this is helpful information, but out of the two OSDs that I have running, the first one (osd.0) is the one that develops this problem the quickest. osd.1 does have the same issue, it just takes much longer. Do the monitors hit the first osd in the list first, when there's activity?
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Samuel Just" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Sent: Friday, January 4, 2013 10:20:58 AM
Subject: Re: OSD memory leaks?Hi Sam,
Thanks for your answer and sorry the late reply.
Unfortunately I can't get something out from the profiler, actually I do but I guess it doesn't show what is supposed to show... I will keep on trying this. Anyway yesterday I just thought that the problem might be due to some over usage of some OSDs. I was thinking that the distribution of the primary OSD might be uneven, this could have explained that some memory leaks are more important with some servers. At the end, the repartition seems even but while looking at the pg dump I found something interesting in the scrub column, timestamps from the last scrubbing operation matched with times showed on the graph.
After this, I made some calculation, I compared the total number of scrubbing operation with the time range where memory leaks occurred. First of all check my setup:
root@c2-ceph-01 ~ # ceph osd tree
dumped osdmap tree epoch 859# id weight type name up/down reweight -1 12 pool default -3 12 rack lc2_rack33 -2 3 host c2-ceph-01 0 1 osd.0 up 1 1 1 osd.1 up 1 2 1 osd.2 up 1 -4 3 host c2-ceph-04 10 1 osd.10 up 1 11 1 osd.11 up 1 9 1 osd.9 up 1 -5 3 host c2-ceph-02 3 1 osd.3 up 1 4 1 osd.4 up 1 5 1 osd.5 up 1 -6 3 host c2-ceph-03 6 1 osd.6 up 1 7 1 osd.7 up 1 8 1 osd.8 up 1And there are the results:
* Ceph node 1 which has the most important memory leak performed 1608 in total and 1059 during the time range where memory leaks occured
* Ceph node 2, 1168 in total and 776 during the time range where memory leaks occured
* Ceph node 3, 940 in total and 94 during the time range where memory leaks occurred
* Ceph node 4, 899 in total and 191 during the time range where memory leaks occurredI'm still not entirely sure that the scrub operation causes the leak but the only relevant relation that I found...
Could it be that the scrubbing process doesn't release memory? Btw I was wondering, how ceph decides at what time it should run the scrubbing operation? I know that it's once a day and control by the following options
OPTION(osd_scrub_min_interval, OPT_FLOAT, 300)OPTION(osd_scrub_max_interval, OPT_FLOAT, 60*60*24)But how ceph determined the time where the operation started, during cluster creation probably?
I just checked the options that control OSD scrubbing and found that by default:
OPTION(osd_max_scrubs, OPT_INT, 1)So that might explain why only one OSD uses a lot of memory.
My dirty workaround at the moment is to performed a check of memory use by every OSD and restart it if it uses more than 25% of the total memory. Also note that on ceph 1, 3 and 4 it's always one OSD that uses a lot of memory, for ceph 2 only the mem usage is high but almost the same for all the OSD process.
Thank you in advance.
Signature · 2 lines
Regards, Sébastien Han.Quoted 92 lines · Samuel Just
Sorry, it's been very busy. The next step would to try to get a heap dump. You can start a heap profile on osd N by:
ceph osd tell N heap
start_profilerand you can get it to dump the collected profile using
ceph osd tell N heap dump.
The dumps should show up in the osd log directory.
Assuming the heap profiler is working correctly, you can look at the dump using pprof in google-perftools.
Quoted 76 lines · Sébastien Han
No more suggestions? :(
Signature · 2 lines
Regards, Sébastien Han.Quoted 69 lines · Sébastien Han
Nothing terrific...
Kernel logs from my clients are full of "libceph: osd4 172.20.11.32:6801 socket closed"
I saw this somewhere on the tracker.
Does this harm?
Thanks.
Signature · 2 lines
Regards, Sébastien Han.Quoted 51 lines · Samuel Just
What is the workload like?
-SamQuoted 46 lines · Sébastien Han
Hi,
No, I don't see nothing abnormal in the network stats. I don't see anything in the logs... :(
The weird thing is that one node over 4 seems to take way more memory than the others...Signature · 2 lines
Regards, Sébastien Han.Quoted 33 lines · Sébastien Han
Hi,
No, I don't see nothing abnormal in the network stats. I don't see anything in the logs... :( The weird thing is that one node over 4 seems to take way more memory than the others...
Signature · 2 lines
Regards, Sébastien Han.Quoted 20 lines · Samuel Just
Are you having network hiccups? There was a bug noticed recently that could cause a memory leak if nodes are being marked up and down. -Sam
Quoted 14 lines · Sébastien Han
Hi guys,
Today looking at my graphs I noticed that one over 4 ceph nodes used a lot of memory. It keeps growing and growing.
See the graph attached to this mail.
I run 0.48.2 on Ubuntu 12.04.The other nodes also grow, but slowly than the first one.
I'm not quite sure about the information that I have to provide. So let me know. The only thing I can say is that the load haven't increase that much this week. It seems to be consuming and not giving back the memory.
Quoted 11 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Thank you in advance.
Signature · 2 lines
Regards, Sébastien Han.Signature · 3 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
If you wait too long, the system will trigger OOM killer :D, I already experienced that unfortunately...
Sam?
Quoted 1 line · Dave Spano
OOM killer
--
Regards,
Sébastien Han.
--
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
Just fyi, I also have growing memory on OSD, and I have the same logs:
"libceph: osd4 172.20.11.32:6801 socket closed" in the RBD clients
I traced that problem and correlated it to some cephx issue in the OSD some time ago in this thread
http://www.mail-archive.com/[email protected]/msg10634.html
but the thread kind of died without a solution ...
Cheers,
Sylvain
Hi,
Thanks for the input.
I also have tons of "socket closed", I recall that this message is harmless. Anyway Cephx is disable on my platform from the beginning... Anyone to approve or disapprove my "scrub theory"?
--
Regards,
Sébastien Han.
Quoted 8 lines · Sylvain Munaut
Just fyi, I also have growing memory on OSD, and I have the same logs:
"libceph: osd4 172.20.11.32:6801 socket closed" in the RBD clients
I traced that problem and correlated it to some cephx issue in the OSD some time ago in this thread
Quoted 7 lines
http://www.mail-archive.com/[email protected]/msg10634.html
but the thread kind of died without a solution ...
Cheers,
Sylvain
--
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 3 lines · Sylvain Munaut
Just fyi, I also have growing memory on OSD, and I have the same logs:
"libceph: osd4 172.20.11.32:6801 socket closed" in the RBD clients
That message is not an error; it just happens if the RBD client doesn't talk to that OSD for a while. I believe its volume has been turned down quite a lot in the latest kernels/our git tree. -Greg
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase — this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
Any ideas? Nothing to say about my scrumbing theory?
Thanks!
--
Regards,
Sébastien Han.
Quoted 10 lines · Gregory Farnum
Quoted 3 lines · Sylvain Munaut
Just fyi, I also have growing memory on OSD, and I have the same logs:
"libceph: osd4 172.20.11.32:6801 socket closed" in the RBD clients
That message is not an error; it just happens if the RBD client doesn't talk to that OSD for a while. I believe its volume has been turned down quite a lot in the latest kernels/our git tree. -Greg
--
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 8 lines · Sébastien Han
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase — this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg
--
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
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
--
Regards,
Sébastien Han.
Quoted 10 lines · Gregory Farnum
Quoted 8 lines · Sébastien Han
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase — this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
Quoted 8 lines
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg
--
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 9 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sage
Quoted 30 lines
--
Regards,
S?bastien Han.Quoted 10 lines · Gregory Farnum
Quoted 8 lines · S?bastien Han
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
Quoted 8 lines
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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
Hi Sage,
Sorry it's a production system, so I can't test it. So at the end, you can't get anything out of the core dump?
--
Regards,
Sébastien Han.
Quoted 16 lines · Sage Weil
Quoted 9 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Quoted 39 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 30 lines
--
Regards,
S?bastien Han.Quoted 10 lines · Gregory Farnum
Quoted 8 lines · S?bastien Han
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
Quoted 8 lines
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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 4 lines · S?bastien Han
Hi Sage,
Sorry it's a production system, so I can't test it. So at the end, you can't get anything out of the core dump?
I saw a bunch of dup object anmes, which is what led us to the pg log theory. I can look a bit more carefully to confirm, but in the end it would be nice to see users scrubbing without leaking.
This may be a bit moot because we want to allow trimming for other reasons, so those patches are being tested and working their way into master. We'll backport when things are solid.
In the meantime, if someone has been able to reproduce this in a test environment, testing is obviously welcome :)
sage
Quoted 68 lines
--
Regards,
S?bastien Han.Quoted 16 lines · Sage Weil
Quoted 9 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Quoted 39 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 30 lines
--
Regards,
S?bastien Han.Quoted 10 lines · Gregory Farnum
Quoted 8 lines · S?bastien Han
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
Quoted 8 lines
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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 · Sage Weil
Quoted 4 lines · S?bastien Han
Hi Sage,
Sorry it's a production system, so I can't test it. So at the end, you can't get anything out of the core dump?
I saw a bunch of dup object anmes, which is what led us to the pg log theory. I can look a bit more carefully to confirm, but in the end it would be nice to see users scrubbing without leaking.
Quoted 7 lines
This may be a bit moot because we want to allow trimming for other reasons, so those patches are being tested and working their way into master. We'll backport when things are solid.
In the meantime, if someone has been able to reproduce this in a test environment, testing is obviously welcome :)
I'll see what I can do later this week. I know of a cluster which has the same issues which is in semi-production as far as I know.
Wido
Quoted 78 lines
sage
Quoted 62 lines
--
Regards,
S?bastien Han.Quoted 16 lines · Sage Weil
Quoted 9 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Quoted 39 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 30 lines
--
Regards,
S?bastien Han.Quoted 10 lines · Gregory Farnum
Quoted 8 lines · S?bastien Han
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
Quoted 8 lines
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 6 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
Signature · 5 lines
Wido den Hollander 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on
Ok thanks guys. Hope we will find something :-).
--
Regards,
Sébastien Han.
Quoted 127 lines · Wido den Hollander
Quoted 13 lines · Sage Weil
Quoted 5 lines · S?bastien Han
Hi Sage,
Sorry it's a production system, so I can't test it. So at the end, you can't get anything out of the core dump?
I saw a bunch of dup object anmes, which is what led us to the pg log theory. I can look a bit more carefully to confirm, but in the end it would be nice to see users scrubbing without leaking.
Quoted 7 lines
This may be a bit moot because we want to allow trimming for other reasons, so those patches are being tested and working their way into master. We'll backport when things are solid.
In the meantime, if someone has been able to reproduce this in a test environment, testing is obviously welcome :)
I'll see what I can do later this week. I know of a cluster which has the same issues which is in semi-production as far as I know.
Wido
Quoted 92 lines
sage
Quoted 81 lines
--
Regards,
S?bastien Han.Quoted 21 lines · Sage Weil
Quoted 11 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh
old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.Quoted 52 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is
class or chunky/deep.Thanks!
sageQuoted 42 lines
--
Regards,
S?bastien Han.Quoted 20 lines · Gregory Farnum
Quoted 9 lines · S?bastien Han
Quoted 7 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Quoted 3 lines
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 6 lines
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 6 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.htmlQuoted 5 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
Quoted 6 lines
--
Wido den Hollander
42on B.V.Phone: +31 (0)20 700 9902
Skype: contact42on
--
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 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
Wido
Quoted 44 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 20 lines
--
Regards,
S?bastien Han.Quoted 14 lines · Gregory Farnum
Quoted 8 lines · S?bastien Han
Quoted 4 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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
Signature · 5 lines
Wido den Hollander 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on
That pattern would seem to support the log trimming theory of the leak. -Sam
Quoted 95 lines · Wido den Hollander
Quoted 12 lines · Sage Weil
Quoted 10 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Quoted 8 lines
Quoted 1 line
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
Wido
Quoted 47 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 32 lines
--
Regards,
S?bastien Han.Quoted 18 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 5 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 6 lines
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-GregQuoted 6 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.htmlQuoted 5 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--
Wido den Hollander
42on B.V.Phone: +31 (0)20 700 9902
Skype: contact42on
Quoted 22 lines · Wido den Hollander
Quoted 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
Quoted 5 lines
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
The PGs were active+clean when you saw the leak? There is a problem (that we just fixed in master) where pg logs aren't trimmed for degraded PGs.
sage
Quoted 60 lines
Wido
Quoted 47 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 23 lines
--
Regards,
S?bastien Han.Quoted 17 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 6 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlSignature · 5 lines
Wido den Hollander 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on
FYI I'm using 450 pgs for my pools.
--
Regards,
Sébastien Han.
Quoted 27 lines · Sage Weil
Quoted 25 lines · Wido den Hollander
Quoted 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
Quoted 68 lines
Quoted 2 lines
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
The PGs were active+clean when you saw the leak? There is a problem (that we just fixed in master) where pg logs aren't trimmed for degraded PGs.
sage
Quoted 60 lines
Wido
Quoted 42 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 23 lines
--
Regards,
S?bastien Han.Quoted 17 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 6 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 5 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--
Wido den Hollander
42on B.V.Phone: +31 (0)20 700 9902
Skype: contact42on
--
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
A message that is not in the archive (sent off-list or not yet received): 13183200.155.1363027427897.JavaMail.dspano@it1
Dave,
It still a production platform so no I didn't try it. I've also found that now ceph-mon are constantly leaking... I truly hope your log max recent = 10000 will help.
Cheers.
--
Regards,
Sébastien Han.
Quoted 29 lines · Dave Spano
Sebastien,
Did the patch that Sage mentioned work for you? I've found that this behavior is happening more frequently with my first osd during deep scrubbing on version 0.56.3. OOM Killer now goes after the ceph-osd process after a couple of days.
Sage,
Yesterday after following the OSD memory requirements thread, I added log max recent = 10000 to ceph.conf, and osd.0 seems to have returned to a state of normalcy. If it makes it through a deep scrubbing with no problem, I'll be very happy.Quoted 8 lines
Quoted 8 lines
Quoted 1 line · [email protected] said:
- pg log trimming (probably a conservative subset) to avoid memory bloat
Anything that reduces the size of OSD processes would be appreciated. You can probably do this with just
log max recent = 1000
By default it's keeping 100k lines of logs in memory, which can eat a lot of ram (but is great when debugging issues).Dave Spano
----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Sage Weil" <[email protected]>
Cc: "Wido den Hollander" <[email protected]>, "Gregory Farnum" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Dave Spano" <[email protected]>, "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Monday, March 4, 2013 12:11:22 PM
Subject: Re: OSD memory leaks?
Quoted 103 lines
FYI I'm using 450 pgs for my pools.
--
Regards,
Sébastien Han.Quoted 95 lines · Sage Weil
Quoted 22 lines · Wido den Hollander
Quoted 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
Quoted 5 lines
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
The PGs were active+clean when you saw the leak? There is a problem (that we just fixed in master) where pg logs aren't trimmed for degraded PGs.
sage
Quoted 60 lines
Wido
Quoted 42 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 23 lines
--
Regards,
S?bastien Han.Quoted 17 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 6 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 5 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--
Wido den Hollander
42on B.V.Phone: +31 (0)20 700 9902
Skype: contact42on
--
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 1 line
FYI I'm using 450 pgs for my pools.
Please, can you show the number of object replicas?
ceph osd dump | grep 'rep size'
Vlad Gorbunov
2013/3/5 Sébastien Han <[email protected]>:
Quoted 99 lines
FYI I'm using 450 pgs for my pools.
--
Regards,
Sébastien Han.Quoted 91 lines · Sage Weil
Quoted 22 lines · Wido den Hollander
Quoted 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
Quoted 5 lines
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
The PGs were active+clean when you saw the leak? There is a problem (that we just fixed in master) where pg logs aren't trimmed for degraded PGs.
sage
Quoted 56 lines
Wido
Quoted 42 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 23 lines
--
Regards,
S?bastien Han.Quoted 17 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 6 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 5 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--
Wido den Hollander
42on B.V.
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Phone: +31 (0)20 700 9902
Skype: contact42on--
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
Replica count has been set to 2.
Why?
--
Regards,
Sébastien Han.
Quoted 115 lines · Vladislav Gorbunov
Quoted 1 line
FYI I'm using 450 pgs for my pools.
Please, can you show the number of object replicas?
ceph osd dump | grep 'rep size'
Vlad Gorbunov
2013/3/5 Sébastien Han <[email protected]>:
Quoted 107 lines
FYI I'm using 450 pgs for my pools.
--
Regards,
Sébastien Han.Quoted 27 lines · Sage Weil
Quoted 25 lines · Wido den Hollander
Quoted 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
Quoted 68 lines
Quoted 2 lines
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
The PGs were active+clean when you saw the leak? There is a problem (that we just fixed in master) where pg logs aren't trimmed for degraded PGs.
sage
Quoted 60 lines
Wido
Quoted 42 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 23 lines
--
Regards,
S?bastien Han.Quoted 17 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 6 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 5 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--
Wido den Hollander
42on B.V.Phone: +31 (0)20 700 9902
Skype: contact42on--
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
Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"
The default pg_num value 8 is NOT suitable for big cluster.
2013/3/13 Sébastien Han <[email protected]>:
Quoted 124 lines
Replica count has been set to 2.
Why?
--
Regards,
Sébastien Han.Quoted 115 lines · Vladislav Gorbunov
Quoted 1 line
FYI I'm using 450 pgs for my pools.
Please, can you show the number of object replicas?
ceph osd dump | grep 'rep size'
Vlad Gorbunov
2013/3/5 Sébastien Han <[email protected]>:
Quoted 107 lines
FYI I'm using 450 pgs for my pools.
--
Regards,
Sébastien Han.Quoted 27 lines · Sage Weil
Quoted 25 lines · Wido den Hollander
Quoted 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
Quoted 68 lines
Quoted 2 lines
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
The PGs were active+clean when you saw the leak? There is a problem (that we just fixed in master) where pg logs aren't trimmed for degraded PGs.
sage
Quoted 60 lines
Wido
Quoted 42 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 23 lines
--
Regards,
S?bastien Han.Quoted 17 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 6 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 5 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--
Wido den Hollander
42on B.V.Phone: +31 (0)20 700 9902
Skype: contact42on--
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 2 lines
Sorry, i mean
pg_numandpgp_numon all pools. Shown by the "ceph osd dump | grep 'rep size'"
Well it's still 450 each...
Quoted 1 line
The default
pg_numvalue 8 is NOT suitable for big cluster.
Thanks I know, I'm not new with Ceph. What's your point here? I already said that pg_num was 450...
--
Regards,
Sébastien Han.
Quoted 4 lines · Vladislav Gorbunov
Sorry, i mean
pg_numandpgp_numon all pools. Shown by the "ceph osd dump | grep 'rep size'"
The defaultpg_numvalue 8 is NOT suitable for big cluster.
Quoted 125 lines
2013/3/13 Sébastien Han <[email protected]>:
Quoted 124 lines
Replica count has been set to 2.
Why?
--
Regards,
Sébastien Han.Quoted 115 lines · Vladislav Gorbunov
Quoted 1 line
FYI I'm using 450 pgs for my pools.
Please, can you show the number of object replicas?
ceph osd dump | grep 'rep size'
Vlad Gorbunov
2013/3/5 Sébastien Han <[email protected]>:
Quoted 107 lines
FYI I'm using 450 pgs for my pools.
--
Regards,
Sébastien Han.Quoted 27 lines · Sage Weil
Quoted 25 lines · Wido den Hollander
Quoted 7 lines · Sage Weil
Quoted 6 lines · S?bastien Han
Hi all,
I finally got a core dump.
I did it with a kill -SEGV on the OSD process.
Quoted 9 lines
Quoted 3 lines
https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
Hope we will get something out of it :-).
AHA! We have a theory. The pg log isnt trimmed during scrub (because teh old scrub code required that), but the new (deep) scrub can take a very long time, which means the pg log will eat ram in the meantime.. especially under high iops.
Does the number of PGs influence the memory leak? So my theory is that when you have a high number of PGs with a low number of objects per PG you don't see the memory leak.
I saw the memory leak on a RBD system where a pool had just 8 PGs, but after going to 1024 PGs in a new pool it seemed to be resolved.
Quoted 68 lines
Quoted 2 lines
I've asked somebody else to try your patch since he's still seeing it on his systems. Hopefully that gives us some results.
The PGs were active+clean when you saw the leak? There is a problem (that we just fixed in master) where pg logs aren't trimmed for degraded PGs.
sage
Quoted 60 lines
Wido
Quoted 42 lines
Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see if that seems to work? Note that that patch shouldn't be run in a mixed argonaut+bobtail cluster, since it isn't properly checking if the scrub is class or chunky/deep.
Thanks!
sageQuoted 23 lines
--
Regards,
S?bastien Han.Quoted 17 lines · Gregory Farnum
Quoted 10 lines · S?bastien Han
Quoted 6 lines
Is osd.1 using the heap profiler as well? Keep in mind that active use
of the memory profiler will itself cause memory usage to increase ? this sounds a bit like that to me since it's staying stable at a large
but finite portion of total memory.Well, the memory consumption was already high before the profiler was started. So yes with the memory profiler enable an OSD might consume more memory but this doesn't cause the memory leaks.
My concern is that maybe you saw a leak but when you restarted with the memory profiling you lost whatever conditions caused it.
Quoted 1 line
Any ideas? Nothing to say about my scrumbing theory?
Quoted 10 lines
Quoted 4 lines
I like it, but Sam indicates that without some heap dumps which capture the actual leak then scrub is too large to effectively code review for leaks. :(
-Greg--
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.htmlQuoted 5 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--
Wido den Hollander
42on B.V.Phone: +31 (0)20 700 9902
Skype: contact42on--
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
That's very good to know. I'll be restarting ceph-osd right now! Thanks for the heads up!
Dave Spano
Optogenics
Systems Administrator
----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Wednesday, January 9, 2013 11:35:13 AM
Subject: Re: OSD memory leaks?
If you wait too long, the system will trigger OOM killer :D, I already experienced that unfortunately...
Sam?
Quoted 1 line · Dave Spano
OOM killer
Signature · 6 lines
Regards, Sébastien Han. -- 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
Dave, I share you my little script for now if you want it:
#!/bin/bash
for i in $(ps aux | grep [c]eph-osd | awk '{print $4}') do
MEM_INTEGER=$(echo $i | cut -d '.' -f1)
OSD=$(ps aux | grep [c]eph-osd | grep "$i " | awk '{print $13}')
if [[ $MEM_INTEGER -ge 25 ]];then
service ceph restart osd.$OSD >> /dev/null
if [ $? -eq 0 ]; thenlogger -t ceph-memory-usage "The OSD number $OSD has been restarted since it was using $i % of the memory"
else
logger -t ceph-memory-usage "ERROR while
restarting the OSD daemon"
fi
else
logger -t ceph-memory-usage "The OSD number $OSD is
only using $i % of the memory, doing nothing"
fi
logger -t ceph-memory-usage "Waiting 60 seconds before testing the next OSD..." sleep 60
done
logger -t ceph-memory-usage "Ceph state after memory check operation
is: $(ceph health)"
Crons run with 10 min interval everyday for each storage node ;-).
Waiting for some Inktank guys now :-).
--
Regards,
Sébastien Han.
Quoted 21 lines · Dave Spano
That's very good to know. I'll be restarting ceph-osd right now! Thanks for the heads up!
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Wednesday, January 9, 2013 11:35:13 AM
Subject: Re: OSD memory leaks?If you wait too long, the system will trigger OOM killer :D, I already experienced that unfortunately...
Sam?
Quoted 8 lines
Quoted 1 line · Dave Spano
OOM killer
--
Regards,
Sébastien Han.
--
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
Thank you. I appreciate it!
Dave Spano
Optogenics
Systems Administrator
----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Wednesday, January 9, 2013 5:12:12 PM
Subject: Re: OSD memory leaks?
Dave, I share you my little script for now if you want it:
#!/bin/bash
for i in $(ps aux | grep [c]eph-osd | awk '{print $4}')
do
MEM_INTEGER=$(echo $i | cut -d '.' -f1)
OSD=$(ps aux | grep [c]eph-osd | grep "$i " | awk '{print $13}') if [[ $MEM_INTEGER -ge 25 ]];then
service ceph restart osd.$OSD >> /dev/null
if [ $? -eq 0 ]; then
logger -t ceph-memory-usage "The OSD number $OSD has been restarted since it was using $i % of the memory"
else
logger -t ceph-memory-usage "ERROR while
restarting the OSD daemon"
fi
else
logger -t ceph-memory-usage "The OSD number $OSD is
only using $i % of the memory, doing nothing"
fi
logger -t ceph-memory-usage "Waiting 60 seconds before testing the next OSD..." sleep 60
done
logger -t ceph-memory-usage "Ceph state after memory check operation
is: $(ceph health)"
Crons run with 10 min interval everyday for each storage node ;-).
Waiting for some Inktank guys now :-).
Signature · 2 lines
Regards, Sébastien Han.
Quoted 16 lines · Dave Spano
That's very good to know. I'll be restarting ceph-osd right now! Thanks for the heads up!
Dave Spano
Optogenics
Systems Administrator----- Original Message -----
From: "Sébastien Han" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>
Sent: Wednesday, January 9, 2013 11:35:13 AM
Subject: Re: OSD memory leaks?
Quoted 13 lines
If you wait too long, the system will trigger OOM killer :D, I already experienced that unfortunately...
Sam?
Quoted 1 line · Dave Spano
OOM killer
Signature · 2 lines
Regards, Sébastien Han.
--
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 5 lines · Dave Spano
Yes, I'm using argonaut.
I've got 38 heap files from yesterday. Currently, the OSD in question is using 91.2% of memory according to top, and staying there. I initially thought it would go until the OOM killer started killing processes, but I don't see anything funny in the system logs that indicate that.
On the other hand, the ceph-osd process on osd.1 is using far less memory.
Is osd.1 using the heap profiler as well? Keep in mind that active use of the memory profiler will itself cause memory usage to increase — this sounds a bit like that to me since it's staying stable at a large but finite portion of total memory.
-Greg
--
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