Skip to contentSkip to conversation

Q&A Session for ReplicatedPG.cc

DISCUSSION Luis Pabon 2 participants 5 messages Jul 2, 2014 – Jul 4, 2014

lore
Share & tools
lore

Luis Pabon

author
#0 lore raw

Hi guys,
I finally have been able to allocate some time to the Read Forward
cache work. I started looking and navigating the code and have a few questions on the behavior and expectations of some of the functions. I have created a Gist with quetions prefixed by a ''//**''. Do you mind spending a few minutes on those questions? Or, you can also point me at documentation I can read which can answer those questions.

Gist: https://gist.github.com/5d037d1cd2c0e482aeb5.git

Thank you.

- Luis

author
#1 lore raw

Bad link. Here is the Gist: https://gist.github.com/lpabon/5d037d1cd2c0e482aeb5

- Luis

Quoted 13 lines · Luis Pabon

Hi guys,
I finally have been able to allocate some time to the Read Forward
cache work. I started looking and navigating the code and have a few questions on the behavior and expectations of some of the functions. I have created a Gist with quetions prefixed by a ''//**''. Do you mind spending a few minutes on those questions? Or, you can also point me at documentation I can read which can answer those questions.

Gist: https://gist.github.com/5d037d1cd2c0e482aeb5.git

Thank you.

- Luis

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
#2 lore raw

I had a few minutes unexpectedly free so I was going to answer (some of) these, but I can't figure out a way to answer questions inline on a gist. Did you have something else in mind? :)
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 31 lines · Luis Pabon

Bad link. Here is the Gist:
https://gist.github.com/lpabon/5d037d1cd2c0e482aeb5

- Luis

Quoted 11 lines · Luis Pabon

Hi guys,
I finally have been able to allocate some time to the Read Forward
cache work. I started looking and navigating the code and have a few questions on the behavior and expectations of some of the functions. I have created a Gist with quetions prefixed by a ''//**''. Do you mind spending a few minutes on those questions? Or, you can also point me at documentation I can read which can answer those questions.

Gist: https://gist.github.com/5d037d1cd2c0e482aeb5.git

Quoted 7 lines

Thank you.

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

author
#3 lore raw

Yeah I wish there was a way to do it inline.

You can add them as comments at the bottom of the Gist or as a reply to this email. Whatever is easiest.

- Luis

Quoted 41 lines · Gregory Farnum

I had a few minutes unexpectedly free so I was going to answer (some of) these, but I can't figure out a way to answer questions inline on a gist. Did you have something else in mind? :)
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 25 lines · Luis Pabon

Bad link. Here is the Gist:
https://gist.github.com/lpabon/5d037d1cd2c0e482aeb5

- Luis

Quoted 10 lines · Luis Pabon

Hi guys,
I finally have been able to allocate some time to the Read Forward
cache work. I started looking and navigating the code and have a few questions on the behavior and expectations of some of the functions. I have created a Gist with quetions prefixed by a ''//**''. Do you mind spending a few minutes on those questions? Or, you can also point me at documentation I can read which can answer those questions.

Gist: https://gist.github.com/5d037d1cd2c0e482aeb5.git

Quoted 7 lines

Thank you.

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

Quoted 4 lines

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

#4 lore raw

I had a little more free time while debugging and testing some monitor stuff today and went through part of these on the gist. I've run out of time to keep going and it started looking less and less like the right way to tackle the knowledge transfer, so some generic advice:
* Try not to focus on the line-by-line questions for systems which you don't have any background in. There are a lot of questions which are all about how eviction works, and I think you just want to get an overview of that system before trying to figure out the details of blocking on eviction.
* Be a little braver about going out to look at other functions. Some of them are huge and won't go anywhere, but you had several notes asking what functions do which were only one level deep, or even had documentation attached to them! can_skip_promote(), for instance, is just 10 lines long (commented!) and looks at the contents of the Op in case it doesn't need the actual data. promote_object() kicks off a whole series of events, but it's fairly straightforward to scroll down the functions and see how the callbacks they put in place string them together to actually gather up data from the base pool and bring it in to the cache pool.
* Try using Eclipse or another IDE. I know it's wussy, but trust me, it will make following logic chains through this code base a lot easier.
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 60 lines · Luis Pabon

Yeah I wish there was a way to do it inline.

You can add them as comments at the bottom of the Gist or as a reply to this email. Whatever is easiest.

- Luis

Quoted 49 lines · Gregory Farnum

I had a few minutes unexpectedly free so I was going to answer (some of) these, but I can't figure out a way to answer questions inline on a gist. Did you have something else in mind? :)
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 31 lines · Luis Pabon

Bad link. Here is the Gist:
https://gist.github.com/lpabon/5d037d1cd2c0e482aeb5

- Luis

Quoted 14 lines · Luis Pabon

Hi guys,
I finally have been able to allocate some time to the Read Forward
cache work. I started looking and navigating the code and have a few questions on the behavior and expectations of some of the functions. I have
created a Gist with quetions prefixed by a ''//**''. Do you mind spending a
few minutes on those questions? Or, you can also point me at documentation I
can read which can answer those questions.

Gist: https://gist.github.com/5d037d1cd2c0e482aeb5.git

Quoted 7 lines

Thank you.

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

Quoted 4 lines

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