Skip to contentSkip to conversation

OSD memory leaks?

DISCUSSION Dave Spano 5 participants 13 messages Mar 12, 2013 – Mar 14, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 7332688.5.1363110084349.JavaMail.dspano@it1

Dave Spano

author
#1 lore raw

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected]>
To: "Sébastien Han" <[email protected]>
Cc: "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Gregory Farnum" <[email protected]>, "Sylvain Munaut" <[email protected]>, "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected]>
To: "Vladislav Gorbunov" <[email protected]>
Cc: "Sage Weil" <[email protected]>, "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: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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...

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 4 lines · Vladislav Gorbunov

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.

Quoted 125 lines

2013/3/13 Sébastien Han <[email protected]>:

Quoted 124 lines

Replica count has been set to 2.

Why?

Signature · 2 lines
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.

Signature · 2 lines
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 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!
sage

Quoted 33 lines
Signature · 2 lines
Regards, 
S?bastien Han. 
Quoted 21 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?

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

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 
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 
Signature · 5 lines
Wido den Hollander 
42on B.V. 

Phone: +31 (0)20 700 9902 
Skype: contact42on 
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

#2 lore raw

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Cheers!
--
Regards,
Sébastien Han.

Quoted 174 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected]>
To: "Sébastien Han" <[email protected]>
Cc: "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Gregory Farnum" <[email protected]>, "Sylvain Munaut" <[email protected]>, "ceph-devel" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected]>
To: "Vladislav Gorbunov" <[email protected]>
Cc: "Sage Weil" <[email protected]>, "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: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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 125 lines · Vladislav Gorbunov

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 120 lines

Replica count has been set to 2.

Why?
--
Regards,
Sébastien Han.

Quoted 111 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 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!
sage

Quoted 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

Quoted 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 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
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

--
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

#3 lore raw
Quoted 4 lines · Sébastien Han

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 211 lines

Cheers!
--
Regards,
Sébastien Han.

Quoted 202 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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_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.

Quoted 141 lines

2013/3/13 Sébastien Han <[email protected] (mailto:[email protected])>:

Quoted 139 lines

Replica count has been set to 2.

Why?
--
Regards,
Sébastien Han.

Quoted 129 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] (mailto:[email protected])>:

Quoted 118 lines

FYI I'm using 450 pgs for my pools.

--
Regards,
Sébastien Han.

Quoted 33 lines · Sage Weil
Quoted 23 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 8 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.

Quoted 71 lines

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 65 lines

Wido

Quoted 48 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!
sage

Quoted 33 lines

--
Regards,
S?bastien Han.

Quoted 17 lines · Gregory Farnum
Quoted 9 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.

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.

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

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] (mailto:[email protected]) More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] (mailto:[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] (mailto:[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] (mailto:[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

author
#4 lore raw

I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Greg Farnum" <[email protected]>
To: "Sébastien Han" <[email protected]>
Cc: "Dave Spano" <[email protected]>, "ceph-devel" <[email protected]>, "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>
Sent: Tuesday, March 12, 2013 4:20:13 PM
Subject: Re: OSD memory leaks?

Quoted 4 lines · Sébastien Han

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 211 lines

Cheers!

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 202 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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...

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 145 lines · Vladislav Gorbunov

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] (mailto:[email protected])>:

Quoted 139 lines

Replica count has been set to 2.

Why?

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 129 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] (mailto:[email protected])>:

Quoted 118 lines

FYI I'm using 450 pgs for my pools.

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 104 lines · Sage Weil
Quoted 23 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 8 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 65 lines

Wido

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!
sage

Quoted 37 lines
Signature · 2 lines
Regards, 
S?bastien Han. 
Quoted 25 lines · Gregory Farnum
Quoted 9 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.

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 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

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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

#5 lore raw

Yeah. There's not anything intelligent about that cppool mechanism. :) -Greg

Quoted 17 lines · Dave Spano

I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Greg Farnum" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 4:20:13 PM
Subject: Re: OSD memory leaks?

On Tuesday, March 12, 2013 at 1:10 PM, Sébastien Han wrote:

Quoted 243 lines
Quoted 4 lines

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 233 lines

Cheers!

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 224 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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...

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 163 lines · Vladislav Gorbunov

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] (mailto:[email protected])>:

Quoted 157 lines

Replica count has been set to 2.

Why?

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 147 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] (mailto:[email protected])>:

Quoted 134 lines

FYI I'm using 450 pgs for my pools.

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 118 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 8 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 75 lines

Wido

Quoted 60 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!
sage

Quoted 43 lines
Signature · 2 lines
Regards,  
S?bastien Han.  
Quoted 29 lines · Gregory Farnum
Quoted 14 lines · S?bastien Han

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

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in  
the body of a message to [email protected] (mailto:[email protected])  
More majordomo info at http://vger.kernel.org/majordomo-info.html  
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in  
the body of a message to [email protected] (mailto:[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  
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in  
the body of a message to [email protected] (mailto:[email protected])  
More majordomo info at http://vger.kernel.org/majordomo-info.html  
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in  
the body of a message to [email protected] (mailto:[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

author
#6 lore raw

Lol. I'm totally fine with that. My glance images pool isn't used too often. I'm going to give that a try today and see what happens.

I'm still crossing my fingers, but since I added log max recent=10000 to ceph.conf, I've been okay despite the improper pg_num, and a lot of scrubbing/deep scrubbing yesterday.

Dave Spano

----- Original Message -----

From: "Greg Farnum" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>, "Sébastien Han" <[email protected]>
Sent: Tuesday, March 12, 2013 5:37:37 PM
Subject: Re: OSD memory leaks?

Yeah. There's not anything intelligent about that cppool mechanism. :) -Greg

Quoted 17 lines · Dave Spano

I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Greg Farnum" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 4:20:13 PM
Subject: Re: OSD memory leaks?

On Tuesday, March 12, 2013 at 1:10 PM, Sébastien Han wrote:

Quoted 243 lines
Quoted 4 lines

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 233 lines

Cheers!

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 224 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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...

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 163 lines · Vladislav Gorbunov

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] (mailto:[email protected])>:

Quoted 157 lines

Replica count has been set to 2.

Why?

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 147 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] (mailto:[email protected])>:

Quoted 134 lines

FYI I'm using 450 pgs for my pools.

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 118 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 8 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 75 lines

Wido

Quoted 60 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!
sage

Quoted 43 lines
Signature · 2 lines
Regards, 
S?bastien Han. 
Quoted 29 lines · Gregory Farnum
Quoted 14 lines · S?bastien Han

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

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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

#7 lore raw

Dave,

Just to be sure, did the log max recent=10000 _completely_ stod the memory leak or did it slow it down?

Thanks!
--
Regards,
Sébastien Han.

Quoted 17 lines · Dave Spano

Lol. I'm totally fine with that. My glance images pool isn't used too often. I'm going to give that a try today and see what happens.

I'm still crossing my fingers, but since I added log max recent=10000 to ceph.conf, I've been okay despite the improper pg_num, and a lot of scrubbing/deep scrubbing yesterday.

Dave Spano

----- Original Message -----

From: "Greg Farnum" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>, "Sébastien Han" <[email protected]>
Sent: Tuesday, March 12, 2013 5:37:37 PM
Subject: Re: OSD memory leaks?

Quoted 265 lines

Yeah. There's not anything intelligent about that cppool mechanism. :) -Greg

Quoted 260 lines · Dave Spano

I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Greg Farnum" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 4:20:13 PM
Subject: Re: OSD memory leaks?

Quoted 4 lines · Sébastien Han

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 233 lines

Cheers!
--
Regards,
Sébastien Han.

Quoted 224 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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_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.

Quoted 159 lines

2013/3/13 Sébastien Han <[email protected] (mailto:[email protected])>:

Quoted 157 lines

Replica count has been set to 2.

Why?
--
Regards,
Sébastien Han.

Quoted 147 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] (mailto:[email protected])>:

Quoted 134 lines

FYI I'm using 450 pgs for my pools.

--
Regards,
Sébastien Han.

Quoted 37 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 8 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.

Quoted 81 lines

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 75 lines

Wido

Quoted 56 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!
sage

Quoted 39 lines

--
Regards,
S?bastien Han.

Quoted 29 lines · Gregory Farnum

On Fri, Jan 11, 2013 at 6:57 AM, S?bastien Han <[email protected] (mailto:[email protected])>
wrote:
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.

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

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] (mailto:[email protected]) More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] (mailto:[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] (mailto:[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] (mailto:[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

author
#8 lore raw

Sebastien,

I'm not totally sure yet, but everything is still working.

Sage and Greg,
I copied my glance image pool per the posting I mentioned previously, and everything works when I use the ceph tools. I can export rbds from the new pool and delete them as well.

I noticed that the copied images pool does not work with glance.

I get this error when I try to create images in the new pool. If I put the old pool back, I can create images no problem.

Is there something I'm missing in glance that I need to work with a pool created in bobtail? I'm using Openstack Folsom.

File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 437, in _upload

    image_meta['size'])                                                                                  

File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 244, in add
image_size, order)
File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 207, in _create_image
features=rbd.RBD_FEATURE_LAYERING)
File "/usr/lib/python2.7/dist-packages/rbd.py", line 194, in create
raise make_ex(ret, 'error creating image')
PermissionError: error creating image

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "Greg Farnum" <[email protected]>, "ceph-devel" <[email protected]>, "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>
Sent: Wednesday, March 13, 2013 3:59:03 PM
Subject: Re: OSD memory leaks?

Dave,

Just to be sure, did the log max recent=10000 _completely_ stod the memory leak or did it slow it down?

Thanks!

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 17 lines · Dave Spano

Lol. I'm totally fine with that. My glance images pool isn't used too often. I'm going to give that a try today and see what happens.

I'm still crossing my fingers, but since I added log max recent=10000 to ceph.conf, I've been okay despite the improper pg_num, and a lot of scrubbing/deep scrubbing yesterday.

Dave Spano

----- Original Message -----

From: "Greg Farnum" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>, "Sébastien Han" <[email protected]>
Sent: Tuesday, March 12, 2013 5:37:37 PM
Subject: Re: OSD memory leaks?

Quoted 265 lines

Yeah. There's not anything intelligent about that cppool mechanism. :) -Greg

Quoted 260 lines · Dave Spano

I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Greg Farnum" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 4:20:13 PM
Subject: Re: OSD memory leaks?

Quoted 4 lines · Sébastien Han

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 233 lines

Cheers!

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 224 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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...

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 163 lines · Vladislav Gorbunov

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] (mailto:[email protected])>:

Quoted 157 lines

Replica count has been set to 2.

Why?

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 147 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] (mailto:[email protected])>:

Quoted 134 lines

FYI I'm using 450 pgs for my pools.

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 118 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 8 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 75 lines

Wido

Quoted 60 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!
sage

Quoted 43 lines
Signature · 2 lines
Regards, 
S?bastien Han. 
Quoted 29 lines · Gregory Farnum

On Fri, Jan 11, 2013 at 6:57 AM, S?bastien Han <[email protected] (mailto:[email protected])>
wrote:
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.

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

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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

#9 lore raw

It sounds like maybe you didn't rename the new pool to use the old pool's name? Glance is looking for a specific pool to store its data in; I believe it's configurable but you'll need to do one or the other. -Greg

Quoted 38 lines · Dave Spano

Sebastien,

I'm not totally sure yet, but everything is still working.

Sage and Greg,
I copied my glance image pool per the posting I mentioned previously, and everything works when I use the ceph tools. I can export rbds from the new pool and delete them as well.

I noticed that the copied images pool does not work with glance.

I get this error when I try to create images in the new pool. If I put the old pool back, I can create images no problem.

Is there something I'm missing in glance that I need to work with a pool created in bobtail? I'm using Openstack Folsom.

File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 437, in _upload image_meta['size'])
File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 244, in add image_size, order)
File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 207, in _create_image features=rbd.RBD_FEATURE_LAYERING)
File "/usr/lib/python2.7/dist-packages/rbd.py", line 194, in create
raise make_ex(ret, 'error creating image')
PermissionError: error creating image

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Dave Spano" <[email protected] (mailto:[email protected])>
Cc: "Greg Farnum" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Wednesday, March 13, 2013 3:59:03 PM
Subject: Re: OSD memory leaks?

Quoted 318 lines

Dave,

Just to be sure, did the log max recent=10000 _completely_ stod the memory leak or did it slow it down?

Thanks!

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 305 lines · Dave Spano

Lol. I'm totally fine with that. My glance images pool isn't used too often. I'm going to give that a try today and see what happens.

I'm still crossing my fingers, but since I added log max recent=10000 to ceph.conf, I've been okay despite the improper pg_num, and a lot of scrubbing/deep scrubbing yesterday.

Dave Spano

----- Original Message -----

From: "Greg Farnum" <[email protected] (mailto:[email protected])>
To: "Dave Spano" <[email protected] (mailto:[email protected])>
Cc: "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>, "Sébastien Han" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 5:37:37 PM
Subject: Re: OSD memory leaks?

Yeah. There's not anything intelligent about that cppool mechanism. :) -Greg

Quoted 282 lines · Dave Spano

I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Greg Farnum" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 4:20:13 PM
Subject: Re: OSD memory leaks?

Quoted 4 lines · Sébastien Han

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 255 lines

Cheers!

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 246 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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...

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 181 lines · Vladislav Gorbunov

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] (mailto:[email protected])>:

Quoted 175 lines

Replica count has been set to 2.

Why?

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 165 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] (mailto:[email protected])>:

Quoted 150 lines

FYI I'm using 450 pgs for my pools.

Signature · 2 lines
Regards,  
Sébastien Han.  
Quoted 132 lines · Sage Weil
Quoted 27 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 8 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 85 lines

Wido

Quoted 68 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!
sage

Quoted 49 lines

--
Regards,
S?bastien Han.

On Fri, Jan 11, 2013 at 7:13 PM, Gregory Farnum <[email protected] (mailto:[email protected])> wrote:
On Fri, Jan 11, 2013 at 6:57 AM, S?bastien Han <[email protected] (mailto:[email protected])>
wrote:
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.

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] (mailto:[email protected])
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in  
the body of a message to [email protected] (mailto:[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  
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in  
the body of a message to [email protected] (mailto:[email protected])  
More majordomo info at http://vger.kernel.org/majordomo-info.html  
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in  
the body of a message to [email protected] (mailto:[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

author
#10 lore raw

I renamed the old one from images to images-old, and the new one from images-new to images.

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----
From: Greg Farnum &lt;[email protected]&gt;
To: Dave Spano &lt;[email protected]&gt;
Cc: Sébastien Han &lt;[email protected]&gt;, ceph-devel &lt;[email protected]&gt;, Sage Weil &lt;[email protected]&gt;, Wido den Hollander &lt;[email protected]&gt;, Sylvain Munaut &lt;[email protected]&gt;, Samuel Just &lt;[email protected]&gt;, Vladislav Gorbunov &lt;[email protected]&gt;
Sent: Wed, 13 Mar 2013 18:52:29 -0400 (EDT)
Subject: Re: OSD memory leaks?

It sounds like maybe you didn't rename the new pool to use the old pool's name? Glance is looking for a specific pool to store its data in; I believe it's configurable but you'll need to do one or the other. -Greg

On Wednesday, March 13, 2013 at 3:38 PM, Dave Spano wrote:

&gt; Sebastien,
&gt;
&gt; I'm not totally sure yet, but everything is still working.
&gt;
&gt;
&gt; Sage and Greg,
&gt; I copied my glance image pool per the posting I mentioned previously, and everything works when I use the ceph tools. I can export rbds from the new pool and delete them as well.
&gt;
&gt; I noticed that the copied images pool does not work with glance.
&gt;
&gt; I get this error when I try to create images in the new pool. If I put the old pool back, I can create images no problem.
&gt;
&gt; Is there something I'm missing in glance that I need to work with a pool created in bobtail? I'm using Openstack Folsom.
&gt;
&gt; File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 437, in _upload
&gt; image_meta['size'])
&gt; File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 244, in add
&gt; image_size, order)
&gt; File "/usr/lib/python2.7/dist-packages/glance/store/rbd.py", line 207, in _create_image
&gt; features=rbd.RBD_FEATURE_LAYERING)
&gt; File "/usr/lib/python2.7/dist-packages/rbd.py", line 194, in create
&gt; raise make_ex(ret, 'error creating image')
&gt; PermissionError: error creating image
&gt;
&gt;
&gt; Dave Spano
&gt;
&gt;
&gt;
&gt;
&gt; ----- Original Message -----
&gt;
&gt; From: "Sébastien Han" &lt;[email protected] (mailto:[email protected])&gt;
&gt; To: "Dave Spano" &lt;[email protected] (mailto:[email protected])&gt;
&gt; Cc: "Greg Farnum" &lt;[email protected] (mailto:[email protected])&gt;, "ceph-devel" &lt;[email protected] (mailto:[email protected])&gt;, "Sage Weil" &lt;[email protected] (mailto:[email protected])&gt;, "Wido den Hollander" &lt;[email protected] (mailto:[email protected])&gt;, "Sylvain Munaut" &lt;[email protected] (mailto:[email protected])&gt;, "Samuel Just" &lt;[email protected] (mailto:[email protected])&gt;, "Vladislav Gorbunov" &lt;[email protected] (mailto:[email protected])&gt; &gt; Sent: Wednesday, March 13, 2013 3:59:03 PM
&gt; Subject: Re: OSD memory leaks?
&gt;
&gt; Dave,
&gt;
&gt; Just to be sure, did the log max recent=10000 _completely_ stod the
&gt; memory leak or did it slow it down?
&gt;
&gt; Thanks!
&gt; --
&gt; Regards,
&gt; Sébastien Han.
&gt;
&gt;
&gt; On Wed, Mar 13, 2013 at 2:12 PM, Dave Spano &lt;[email protected] (mailto:[email protected])&gt; wrote:
&gt; &gt; Lol. I'm totally fine with that. My glance images pool isn't used too often. I'm going to give that a try today and see what happens.
&gt; &gt;
&gt; &gt; I'm still crossing my fingers, but since I added log max recent=10000 to ceph.conf, I've been okay despite the improper pg_num, and a lot of scrubbing/deep scrubbing yesterday.
&gt; &gt;
&gt; &gt; Dave Spano
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; ----- Original Message -----
&gt; &gt;
&gt; &gt; From: "Greg Farnum" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; To: "Dave Spano" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; Cc: "ceph-devel" &lt;[email protected] (mailto:[email protected])&gt;, "Sage Weil" &lt;[email protected] (mailto:[email protected])&gt;, "Wido den Hollander" &lt;[email protected] (mailto:[email protected])&gt;, "Sylvain Munaut" &lt;[email protected] (mailto:[email protected])&gt;, "Samuel Just" &lt;[email protected] (mailto:[email protected])&gt;, "Vladislav Gorbunov" &lt;[email protected] (mailto:[email protected])&gt;, "Sébastien Han" &lt;[email protected] (mailto:[email protected])&gt; &gt; &gt; Sent: Tuesday, March 12, 2013 5:37:37 PM
&gt; &gt; Subject: Re: OSD memory leaks?
&gt; &gt;
&gt; &gt; Yeah. There's not anything intelligent about that cppool mechanism. :)
&gt; &gt; -Greg
&gt; &gt;
&gt; &gt; On Tuesday, March 12, 2013 at 2:15 PM, Dave Spano wrote:
&gt; &gt;
&gt; &gt; &gt; I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?
&gt; &gt; &gt;
&gt; &gt; &gt; Dave Spano
&gt; &gt; &gt; Optogenics
&gt; &gt; &gt; Systems Administrator
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; ----- Original Message -----
&gt; &gt; &gt;
&gt; &gt; &gt; From: "Greg Farnum" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; &gt; To: "Sébastien Han" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; &gt; Cc: "Dave Spano" &lt;[email protected] (mailto:[email protected])&gt;, "ceph-devel" &lt;[email protected] (mailto:[email protected])&gt;, "Sage Weil" &lt;[email protected] (mailto:[email protected])&gt;, "Wido den Hollander" &lt;[email protected] (mailto:[email protected])&gt;, "Sylvain Munaut" &lt;[email protected] (mailto:[email protected])&gt;, "Samuel Just" &lt;[email protected] (mailto:[email protected])&gt;, "Vladislav Gorbunov" &lt;[email protected] (mailto:[email protected])&gt; &gt; &gt; &gt; Sent: Tuesday, March 12, 2013 4:20:13 PM
&gt; &gt; &gt; Subject: Re: OSD memory leaks?
&gt; &gt; &gt;
&gt; &gt; &gt; On Tuesday, March 12, 2013 at 1:10 PM, Sébastien Han wrote:
&gt; &gt; &gt; &gt; Well to avoid un necessary data movement, there is also an
&gt; &gt; &gt; &gt; _experimental_ feature to change on fly the number of PGs in a pool.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; ceph osd pool set &lt;poolname&gt; pg_num &lt;numpgs&gt; --allow-experimental-feature
&gt; &gt; &gt; Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of…
&gt; &gt; &gt; -Greg
&gt; &gt; &gt;
&gt; &gt; &gt; Software Engineer #42 @ http://inktank.com | http://ceph.com
&gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Cheers!
&gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; Regards,
&gt; &gt; &gt; &gt; Sébastien Han.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; On Tue, Mar 12, 2013 at 7:09 PM, Dave Spano &lt;[email protected] (mailto:[email protected])&gt; wrote:
&gt; &gt; &gt; &gt; &gt; Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Dave Spano
&gt; &gt; &gt; &gt; &gt; Optogenics
&gt; &gt; &gt; &gt; &gt; Systems Administrator
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; ----- Original Message -----
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; From: "Dave Spano" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; &gt; &gt; &gt; To: "Sébastien Han" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; &gt; &gt; &gt; Cc: "Sage Weil" &lt;[email protected] (mailto:[email protected])&gt;, "Wido den Hollander" &lt;[email protected] (mailto:[email protected])&gt;, "Gregory Farnum" &lt;[email protected] (mailto:[email protected])&gt;, "Sylvain Munaut" &lt;[email protected] (mailto:[email protected])&gt;, "ceph-devel" &lt;[email protected] (mailto:[email protected])&gt;, "Samuel Just" &lt;[email protected] (mailto:[email protected])&gt;, "Vladislav Gorbunov" &lt;[email protected] (mailto:[email protected])&gt; &gt; &gt; &gt; &gt; &gt; Sent: Tuesday, March 12, 2013 1:41:21 PM
&gt; &gt; &gt; &gt; &gt; Subject: Re: OSD memory leaks?
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Dave Spano
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; ----- Original Message -----
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; From: "Sébastien Han" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; &gt; &gt; &gt; To: "Vladislav Gorbunov" &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; &gt; &gt; &gt; Cc: "Sage Weil" &lt;[email protected] (mailto:[email protected])&gt;, "Wido den Hollander" &lt;[email protected] (mailto:[email protected])&gt;, "Gregory Farnum" &lt;[email protected] (mailto:[email protected])&gt;, "Sylvain Munaut" &lt;[email protected] (mailto:[email protected])&gt;, "Dave Spano" &lt;[email protected] (mailto:[email protected])&gt;, "ceph-devel" &lt;[email protected] (mailto:[email protected])&gt;, "Samuel Just" &lt;[email protected] (mailto:[email protected])&gt; &gt; &gt; &gt; &gt; &gt; Sent: Tuesday, March 12, 2013 9:43:44 AM
&gt; &gt; &gt; &gt; &gt; Subject: Re: OSD memory leaks?
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd
&gt; &gt; &gt; &gt; &gt; &gt; dump | grep 'rep size'"
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Well it's still 450 each...
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; The default pg_num value 8 is NOT suitable for big cluster.
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; Thanks I know, I'm not new with Ceph. What's your point here? I
&gt; &gt; &gt; &gt; &gt; already said that pg_num was 450...
&gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; Regards,
&gt; &gt; &gt; &gt; &gt; Sébastien Han.
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; On Tue, Mar 12, 2013 at 2:00 PM, Vladislav Gorbunov &lt;[email protected] (mailto:[email protected])&gt; wrote:
&gt; &gt; &gt; &gt; &gt; &gt; Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd
&gt; &gt; &gt; &gt; &gt; &gt; dump | grep 'rep size'"
&gt; &gt; &gt; &gt; &gt; &gt; The default pg_num value 8 is NOT suitable for big cluster.
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; 2013/3/13 Sébastien Han &lt;[email protected] (mailto:[email protected])&gt;:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Replica count has been set to 2.
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Why?
&gt; &gt; &gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; Sébastien Han.
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; On Tue, Mar 12, 2013 at 12:45 PM, Vladislav Gorbunov &lt;[email protected] (mailto:[email protected])&gt; wrote:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; FYI I'm using 450 pgs for my pools.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Please, can you show the number of object replicas?
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; ceph osd dump | grep 'rep size'
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Vlad Gorbunov
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 2013/3/5 Sébastien Han &lt;[email protected] (mailto:[email protected])&gt;:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; FYI I'm using 450 pgs for my pools.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Sébastien Han.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On Fri, Mar 1, 2013 at 8:10 PM, Sage Weil &lt;[email protected] (mailto:[email protected])&gt; wrote:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On Fri, 1 Mar 2013, Wido den Hollander wrote:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On 02/23/2013 01:44 AM, Sage Weil wrote:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On Fri, 22 Feb 2013, S?bastien Han wrote:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hi all,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I finally got a core dump.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I did it with a kill -SEGV on the OSD process.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; https://www.dropbox.com/s/ahv6hm0ipnak5rf/core-ceph-osd-11-0-0-20100-1361539008
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Hope we will get something out of it :-).
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; AHA! We have a theory. The pg log isnt trimmed during scrub (because teh
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; old scrub code required that), but the new (deep) scrub can take a very
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; long time, which means the pg log will eat ram in the meantime..
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; especially under high iops.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Does the number of PGs influence the memory leak? So my theory is that when
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; you have a high number of PGs with a low number of objects per PG you don't
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; see the memory leak.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I saw the memory leak on a RBD system where a pool had just 8 PGs, but after
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; going to 1024 PGs in a new pool it seemed to be resolved.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I've asked somebody else to try your patch since he's still seeing it on his
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; systems. Hopefully that gives us some results.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; The PGs were active+clean when you saw the leak? There is a problem (that
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; we just fixed in master) where pg logs aren't trimmed for degraded PGs.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; sage
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Wido
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Can you try wip-osd-log-trim (which is bobtail + a simple patch) and see
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; if that seems to work? Note that that patch shouldn't be run in a mixed
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; argonaut+bobtail cluster, since it isn't properly checking if the scrub is
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; class or chunky/deep.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Thanks!
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; sage
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Regards,
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; S?bastien Han.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On Fri, Jan 11, 2013 at 7:13 PM, Gregory Farnum &lt;[email protected] (mailto:[email protected])&gt; wrote:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; On Fri, Jan 11, 2013 at 6:57 AM, S?bastien Han &lt;[email protected] (mailto:[email protected])&gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; wrote:
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Is osd.1 using the heap profiler as well? Keep in mind that active
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; use
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; of the memory profiler will itself cause memory usage to increase ?
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; this sounds a bit like that to me since it's staying stable at a
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; large
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; but finite portion of total memory.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Well, the memory consumption was already high before the profiler was
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; started. So yes with the memory profiler enable an OSD might consume
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; more memory but this doesn't cause the memory leaks.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; My concern is that maybe you saw a leak but when you restarted with
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; the memory profiling you lost whatever conditions caused it.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Any ideas? Nothing to say about my scrumbing theory?
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; I like it, but Sam indicates that without some heap dumps which
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; capture the actual leak then scrub is too large to effectively code
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; review for leaks. :(
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; -Greg
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; the body of a message to [email protected] (mailto:[email protected])
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; More majordomo info at http://vger.kernel.org/majordomo-info.html
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; the body of a message to [email protected] (mailto:[email protected])
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; More majordomo info at http://vger.kernel.org/majordomo-info.html
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Wido den Hollander
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; 42on B.V.
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Phone: +31 (0)20 700 9902
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; Skype: contact42on
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; the body of a message to [email protected] (mailto:[email protected])
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt; More majordomo info at http://vger.kernel.org/majordomo-info.html
&gt; &gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; &gt; --
&gt; &gt; &gt; &gt; &gt; To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
&gt; &gt; &gt; &gt; &gt; the body of a message to [email protected] (mailto:[email protected])
&gt; &gt; &gt; &gt; &gt; More majordomo info at http://vger.kernel.org/majordomo-info.html
&gt; &gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt;
&gt;

--
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

#11 lore raw
Quoted 1 line · Dave Spano

I renamed the old one from images to images-old, and the new one from images-new to images.

This reminds me of a problem you might hit with this:

RBD clones track the parent image pool by id, so they'll continue working after the pool is renamed. If you have any clones of the images-old pool, they'll stop working when that pool is deleted.

To get around this, you'll need to flatten any clones whose parents are in images-old before deleting the images-old pool.

Josh

author
#12 lore raw
In reply to Sébastien Han

Sebastien,

I just had to restart the OSD about 10 minutes ago, so it looks like all it did was slow down the process.

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "Greg Farnum" <[email protected]>, "ceph-devel" <[email protected]>, "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>
Sent: Wednesday, March 13, 2013 3:59:03 PM
Subject: Re: OSD memory leaks?

Dave,

Just to be sure, did the log max recent=10000 _completely_ stod the memory leak or did it slow it down?

Thanks!

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 17 lines · Dave Spano

Lol. I'm totally fine with that. My glance images pool isn't used too often. I'm going to give that a try today and see what happens.

I'm still crossing my fingers, but since I added log max recent=10000 to ceph.conf, I've been okay despite the improper pg_num, and a lot of scrubbing/deep scrubbing yesterday.

Dave Spano

----- Original Message -----

From: "Greg Farnum" <[email protected]>
To: "Dave Spano" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Sage Weil" <[email protected]>, "Wido den Hollander" <[email protected]>, "Sylvain Munaut" <[email protected]>, "Samuel Just" <[email protected]>, "Vladislav Gorbunov" <[email protected]>, "Sébastien Han" <[email protected]>
Sent: Tuesday, March 12, 2013 5:37:37 PM
Subject: Re: OSD memory leaks?

Quoted 265 lines

Yeah. There's not anything intelligent about that cppool mechanism. :) -Greg

Quoted 260 lines · Dave Spano

I'd rather shut the cloud down and copy the pool to a new one than take any chances of corruption by using an experimental feature. My guess is that there cannot be any i/o to the pool while copying, otherwise you'll lose the changes that are happening during the copy, correct?

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Greg Farnum" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 4:20:13 PM
Subject: Re: OSD memory leaks?

Quoted 4 lines · Sébastien Han

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.

ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

Don't do that. We've got a set of 3 patches which fix bugs we know about that aren't in bobtail yet, and I'm sure there's more we aren't aware of… -Greg

Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 233 lines

Cheers!

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 224 lines · Dave Spano

Disregard my previous question. I found my answer in the post below. Absolutely brilliant! I thought I was screwed!

http://permalink.gmane.org/gmane.comp.file-systems.ceph.devel/8924

Dave Spano
Optogenics
Systems Administrator

----- Original Message -----

From: "Dave Spano" <[email protected] (mailto:[email protected])>
To: "Sébastien Han" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>, "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 1:41:21 PM
Subject: Re: OSD memory leaks?

If one were stupid enough to have their pg_num and pgp_num set to 8 on two of their pools, how could you fix that?

Dave Spano

----- Original Message -----

From: "Sébastien Han" <[email protected] (mailto:[email protected])>
To: "Vladislav Gorbunov" <[email protected] (mailto:[email protected])>
Cc: "Sage Weil" <[email protected] (mailto:[email protected])>, "Wido den Hollander" <[email protected] (mailto:[email protected])>, "Gregory Farnum" <[email protected] (mailto:[email protected])>, "Sylvain Munaut" <[email protected] (mailto:[email protected])>, "Dave Spano" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>, "Samuel Just" <[email protected] (mailto:[email protected])>
Sent: Tuesday, March 12, 2013 9:43:44 AM
Subject: Re: OSD memory leaks?

Quoted 2 lines

Sorry, i mean pg_num and pgp_num on all pools. Shown by the "ceph osd dump | grep 'rep size'"

Well it's still 450 each...

Quoted 1 line

The default pg_num value 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...

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 163 lines · Vladislav Gorbunov

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] (mailto:[email protected])>:

Quoted 157 lines

Replica count has been set to 2.

Why?

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 147 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] (mailto:[email protected])>:

Quoted 134 lines

FYI I'm using 450 pgs for my pools.

Signature · 2 lines
Regards, 
Sébastien Han. 
Quoted 118 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 8 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 75 lines

Wido

Quoted 60 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!
sage

Quoted 43 lines
Signature · 2 lines
Regards, 
S?bastien Han. 
Quoted 29 lines · Gregory Farnum

On Fri, Jan 11, 2013 at 6:57 AM, S?bastien Han <[email protected] (mailto:[email protected])>
wrote:
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.

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

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[email protected]) 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] (mailto:[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

#13 lore raw
In reply to Sébastien Han
Quoted 3 lines · [email protected] said:

Well to avoid un necessary data movement, there is also an _experimental_ feature to change on fly the number of PGs in a pool.
ceph osd pool set <poolname> pg_num <numpgs> --allow-experimental-feature

I've been following the instructions here:

http://ceph.com/docs/master/rados/configuration/osd-config-ref/

under "data placement", trying to set the number of pgs in ceph.conf. I've added these lines in the "global" section:

osd pool default pg num = 500
osd pool default pgp num = 500

but they don't seem to have any effect on how mkcephfs behaves. Before I added these lines, mkcephfs created a data pool with 3904 pgs. After wiping everything, adding the lines and re-creating the pool, it still ends up with 3904 pgs. What am I doing wrong?

Thanks,
Bryan

Signature · 7 lines
========================================================================
Bryan Wright              |"If you take cranberries and stew them like 
Physics Department        | applesauce, they taste much more like prunes
University of Virginia    | than rhubarb does."  --  Groucho 
Charlottesville, VA  22901|			
(434) 924-7218            |         [email protected]
========================================================================