All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Getting WIP aops branch(ovl-aops-wip) in shape for merging.
       [not found]     ` <CAOQ4uxhf6R2Gr1wV_LGbAuDGuuPmnb0Mvx43MxWc2O1gQkrGUQ@mail.gmail.com>
@ 2020-08-12 17:00       ` Ritesh Harjani
  2020-08-12 17:14         ` Amir Goldstein
  0 siblings, 1 reply; 7+ messages in thread
From: Ritesh Harjani @ 2020-08-12 17:00 UTC (permalink / raw)
  To: Amir Goldstein, Chengguang Xu; +Cc: Miklos Szeredi, Aneesh Kumar K.V, overlayfs



On 8/12/20 9:31 PM, Amir Goldstein wrote:
> On Wed, Aug 12, 2020 at 5:00 PM Ritesh Harjani <riteshh@linux.ibm.com> wrote:
>>
>> Hello Amir / Miklos
> 
> Hi Ritesh,
> 
> Those are good questions.
> If you don't mind, please reply with the overlayfs list in CC, so
> that others could benefit from my answers.

Done & thanks for your answers. :)


> 
> I took the liberty to CC Chengguang Xu, who may be interested in this as well.
> 
>>
>> Sorry for getting late on this. I was pulled into some other work
>> before, so I couldn't get to this earlier.
>> I have resumed this work now and and for starters I am going through
>> some key overlayfs functions and data structures (since it has
>> changed since I last checked - more than a year back). I guess more
>> upcoming use cases in containers is the reason for lot of active
>> development in overlayfs :)
>>
>>
>> - While going through ovl_copy_up_tmpfile(), I had this query on
>> why are we setting "temp" dentry as the __upperdentry of ovl_inode?
>> "ovl_inode_update(d_inode(c->dentry), temp);"
>> And similarly in ovl_copy_up_workdir()
> 
> For two different reasons:
> In ovl_copy_up_workdir() d_move() moves 'temp' dentry onto 'upper'.
> In ovl_copy_up_tmpfile() we could use either 'temp' or 'upper'.
> I don't think there was a specific reason for choosing 'temp' beyond the
> fact that before:
> b10cdcdc2012 ovl: untangle copy up call chain
> There was more code in common between these two functions.
> 
> The reason that we could use either  'temp' or 'upper' is because nothing
> AFAIK reads d_parent and d_name of __upperdentry of a non-directory inode
> and the values of those dentry members would be arbitrary anyway with a
> hardlinked/indexed inode.

I agree. I was curious that the above mentioned commit specifically
changed it from "upper" to "temp". While we could have used "upper" as
well.


> 
>>
>> Shouldn't we set "upper" dentry as __upperdentry and do d_put on temp.
>> Although even with current code, I don't see a bug in the functionality,
>> but I was wondering why was this change done in below commit.
>>
>> commit: 6b52243f633eb552 (ovl: fold copy-up helpers into callers)
>>
>> Am I missing anything? Shouldn't the obvious thing to do was to make the
>> "upper" as the upperdentry in ovl_inode?
>>
>>
>> - I did take a brief look at your commits as well in that ovl-aops-wip
>> branch. IIUC, below is a brief summary of what we are trying to solve
>> with aops implementation.
>>
>> Currently if we have a r/o MAP_SHARED file mmaped on the lowerlayer. And
>> if some other process changes the underlying file contents of this file,
>> the process which had r/o mmaped is not able to see those modified
>> changes. This behavior is not valid as per POSIX standard.
>> And the problem really happens because in overlayfs if a lower layer
>> inode is opened for write, it will usually create another inode
>> in the upper layer, will copy_up and will write the changes to new
>> inode. Now since these are two different inodes (which could even be
>> residing in different FS), hence the MAP_SHARED inconsistency problem.
>>
>> Solution - what you proposed it to implement aops for overlayfs
>> which should *(also)* help in solving above MAP_SHARED inconsistency
>> problem.
> 
> More or less. yes. I can't even remember the fine details anymore,
> but IIRC, MAP_SHARED and upper inodes would always use the overlay inode
> pages, while MAP_PRIVATE would use the real inode pages for non-upper inodes,
> in order to share pages among containers with the same lower layers.
> Some more optimizations may be possible going forward for sharing more pages.
> 
>>
>> - I guess once I start going through your patches in more detail,
>> I may approach you for any other query :)
>> Does overlayfs has any IRC channel as well?
> 
> Not that I know of.
> 
>> Or is it mostly through emails?
>>
> 
> Mostly emails.

Sure.

> 
> One thing to note is that the syncfs work [1] by Chengguang Xu will be
> made redundant
> by overlayfs aops.

ohk.


> 
> I don't know if he is planning to follow up on his work. It is not so
> fair to blocks it until
> aops is completed which may take time or take forever, but you may

Sure, agreed.

> want to talk to
> him about collaborating on implementing the aops solution.

Sure. So here is what I was planning.
I am about to start going over patches mentioned in Amir's ovl-aops-wip
branch. My first preference would be to port it to latest upstream and
start cleaning it up.
I will update the branch details once those patches are ported to
latest upstream. Let me know if we should do this in any different way.

I will also be joining this year's plumber, in case if we want
to discuss anything on this. Although I am not sure if by then, I would
be able to get any substantial work done to discuss with a wider
audience. But nevertheless, we can always have a call/email exchanges
for this, both before and after the conference :)

> Looks like he already has a lot of experience with inode writeback and
> overlayfs.

That's really nice!!

-ritesh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Getting WIP aops branch(ovl-aops-wip) in shape for merging.
  2020-08-12 17:00       ` Getting WIP aops branch(ovl-aops-wip) in shape for merging Ritesh Harjani
@ 2020-08-12 17:14         ` Amir Goldstein
  2020-08-12 17:30           ` Ritesh Harjani
  2020-08-26 14:27           ` Ritesh Harjani
  0 siblings, 2 replies; 7+ messages in thread
From: Amir Goldstein @ 2020-08-12 17:14 UTC (permalink / raw)
  To: Ritesh Harjani; +Cc: Chengguang Xu, Miklos Szeredi, Aneesh Kumar K.V, overlayfs

> Sure. So here is what I was planning.
> I am about to start going over patches mentioned in Amir's ovl-aops-wip
> branch. My first preference would be to port it to latest upstream and
> start cleaning it up.
> I will update the branch details once those patches are ported to
> latest upstream. Let me know if we should do this in any different way.
>

Sounds like a plan.

> I will also be joining this year's plumber, in case if we want
> to discuss anything on this. Although I am not sure if by then, I would
> be able to get any substantial work done to discuss with a wider
> audience. But nevertheless, we can always have a call/email exchanges
> for this, both before and after the conference :)
>

Nice. I will be giving a talk on new overlayfs features on the containers track.
I guess there won't be much in the hallway tracks this year...

Thanks,
Amir.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Getting WIP aops branch(ovl-aops-wip) in shape for merging.
  2020-08-12 17:14         ` Amir Goldstein
@ 2020-08-12 17:30           ` Ritesh Harjani
  2020-08-26 14:27           ` Ritesh Harjani
  1 sibling, 0 replies; 7+ messages in thread
From: Ritesh Harjani @ 2020-08-12 17:30 UTC (permalink / raw)
  To: Amir Goldstein; +Cc: Chengguang Xu, Miklos Szeredi, Aneesh Kumar K.V, overlayfs



On 8/12/20 10:44 PM, Amir Goldstein wrote:
>> Sure. So here is what I was planning.
>> I am about to start going over patches mentioned in Amir's ovl-aops-wip
>> branch. My first preference would be to port it to latest upstream and
>> start cleaning it up.
>> I will update the branch details once those patches are ported to
>> latest upstream. Let me know if we should do this in any different way.
>>
> 
> Sounds like a plan.
> 
>> I will also be joining this year's plumber, in case if we want
>> to discuss anything on this. Although I am not sure if by then, I would
>> be able to get any substantial work done to discuss with a wider
>> audience. But nevertheless, we can always have a call/email exchanges
>> for this, both before and after the conference :)
>>
> 
> Nice. I will be giving a talk on new overlayfs features on the containers track.
> I guess there won't be much in the hallway tracks this year...
> 

Nice, looking forward to this!!

-ritesh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Getting WIP aops branch(ovl-aops-wip) in shape for merging.
  2020-08-12 17:14         ` Amir Goldstein
  2020-08-12 17:30           ` Ritesh Harjani
@ 2020-08-26 14:27           ` Ritesh Harjani
  2020-08-27  6:42             ` Amir Goldstein
  1 sibling, 1 reply; 7+ messages in thread
From: Ritesh Harjani @ 2020-08-26 14:27 UTC (permalink / raw)
  To: Amir Goldstein; +Cc: Chengguang Xu, Miklos Szeredi, Aneesh Kumar K.V, overlayfs

Hello Amir,

On 8/12/20 10:44 PM, Amir Goldstein wrote:
>> Sure. So here is what I was planning.
>> I am about to start going over patches mentioned in Amir's ovl-aops-wip
>> branch. My first preference would be to port it to latest upstream and
>> start cleaning it up.
>> I will update the branch details once those patches are ported to
>> latest upstream. Let me know if we should do this in any different way.
>>
> 
> Sounds like a plan.
> 
>> I will also be joining this year's plumber, in case if we want
>> to discuss anything on this. Although I am not sure if by then, I would
>> be able to get any substantial work done to discuss with a wider
>> audience. But nevertheless, we can always have a call/email exchanges
>> for this, both before and after the conference :)
>>
> 
> Nice. I will be giving a talk on new overlayfs features on the containers track.
> I guess there won't be much in the hallway tracks this year...


I went over almost all patches which you have in ovl-aops-wip branch.
For now I have only ported some of the straight forward patches,
since I had few queries on those other patches and one was mainly
w.r.t. metadata only feature functionality.

Do you have sometime today to discuss about it in any of the LPC hacker
room? I was thinking maybe discussing this in person will help a lot.

Any preferred slot? I could not find you online on LPC chat area,
we can as well discuss the slot there. But I am fine with any of the LPC
timings.

-ritesh

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Getting WIP aops branch(ovl-aops-wip) in shape for merging.
  2020-08-26 14:27           ` Ritesh Harjani
@ 2020-08-27  6:42             ` Amir Goldstein
  2020-08-27  7:36               ` Ritesh Harjani
  0 siblings, 1 reply; 7+ messages in thread
From: Amir Goldstein @ 2020-08-27  6:42 UTC (permalink / raw)
  To: Ritesh Harjani
  Cc: Chengguang Xu, Miklos Szeredi, Aneesh Kumar K.V, overlayfs, Vivek Goyal

On Wed, Aug 26, 2020 at 5:27 PM Ritesh Harjani <riteshh@linux.ibm.com> wrote:
>
> Hello Amir,
>
> On 8/12/20 10:44 PM, Amir Goldstein wrote:
> >> Sure. So here is what I was planning.
> >> I am about to start going over patches mentioned in Amir's ovl-aops-wip
> >> branch. My first preference would be to port it to latest upstream and
> >> start cleaning it up.
> >> I will update the branch details once those patches are ported to
> >> latest upstream. Let me know if we should do this in any different way.
> >>
> >
> > Sounds like a plan.
> >
> >> I will also be joining this year's plumber, in case if we want
> >> to discuss anything on this. Although I am not sure if by then, I would
> >> be able to get any substantial work done to discuss with a wider
> >> audience. But nevertheless, we can always have a call/email exchanges
> >> for this, both before and after the conference :)
> >>
> >
> > Nice. I will be giving a talk on new overlayfs features on the containers track.
> > I guess there won't be much in the hallway tracks this year...
>
>
> I went over almost all patches which you have in ovl-aops-wip branch.
> For now I have only ported some of the straight forward patches,
> since I had few queries on those other patches and one was mainly
> w.r.t. metadata only feature functionality.
>

Those questions you can also ask Vivek if you find him in LPC...

> Do you have sometime today to discuss about it in any of the LPC hacker
> room? I was thinking maybe discussing this in person will help a lot.
>

I agree that a video meetup can be useful to kickoff this effort, but
it is preferred if Chengguang can also attend, because it feels like
you guys need to collaborate.

> Any preferred slot? I could not find you online on LPC chat area,
> we can as well discuss the slot there. But I am fine with any of the LPC
> timings.
>

I cannot do LPC times today or tomorrow, but the hacker rooms are
open and judging by the time of your email you may be closer to my
time zone, so if you want to schedule a meeting somewhere in the next
5 hours, I can join. (7:00-12:00 UTC).

Otherwise, we can always schedule a call outside of LPC, where
participants not registered to LPC will be able to join (Chengguang?).

Thanks,
Amir.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Getting WIP aops branch(ovl-aops-wip) in shape for merging.
  2020-08-27  6:42             ` Amir Goldstein
@ 2020-08-27  7:36               ` Ritesh Harjani
       [not found]                 ` <1742eff988b.f97421f5734.6795211467293709335@mykernel.net>
  0 siblings, 1 reply; 7+ messages in thread
From: Ritesh Harjani @ 2020-08-27  7:36 UTC (permalink / raw)
  To: Amir Goldstein, Chengguang Xu
  Cc: Miklos Szeredi, Aneesh Kumar K.V, overlayfs, Vivek Goyal



On 8/27/20 12:12 PM, Amir Goldstein wrote:
> On Wed, Aug 26, 2020 at 5:27 PM Ritesh Harjani <riteshh@linux.ibm.com> wrote:
>>
>> Hello Amir,
>>
>> On 8/12/20 10:44 PM, Amir Goldstein wrote:
>>>> Sure. So here is what I was planning.
>>>> I am about to start going over patches mentioned in Amir's ovl-aops-wip
>>>> branch. My first preference would be to port it to latest upstream and
>>>> start cleaning it up.
>>>> I will update the branch details once those patches are ported to
>>>> latest upstream. Let me know if we should do this in any different way.
>>>>
>>>
>>> Sounds like a plan.
>>>
>>>> I will also be joining this year's plumber, in case if we want
>>>> to discuss anything on this. Although I am not sure if by then, I would
>>>> be able to get any substantial work done to discuss with a wider
>>>> audience. But nevertheless, we can always have a call/email exchanges
>>>> for this, both before and after the conference :)
>>>>
>>>
>>> Nice. I will be giving a talk on new overlayfs features on the containers track.
>>> I guess there won't be much in the hallway tracks this year...
>>
>>
>> I went over almost all patches which you have in ovl-aops-wip branch.
>> For now I have only ported some of the straight forward patches,
>> since I had few queries on those other patches and one was mainly
>> w.r.t. metadata only feature functionality.
>>
> 
> Those questions you can also ask Vivek if you find him in LPC...

Sure, thanks. Will try to check with Vivek.

> 
>> Do you have sometime today to discuss about it in any of the LPC hacker
>> room? I was thinking maybe discussing this in person will help a lot.
>>
> 
> I agree that a video meetup can be useful to kickoff this effort, but
> it is preferred if Chengguang can also attend, because it feels like
> you guys need to collaborate.
> 
>> Any preferred slot? I could not find you online on LPC chat area,
>> we can as well discuss the slot there. But I am fine with any of the LPC
>> timings.
>>
> 
> I cannot do LPC times today or tomorrow, but the hacker rooms are
> open and judging by the time of your email you may be closer to my
> time zone, so if you want to schedule a meeting somewhere in the next
> 5 hours, I can join. (7:00-12:00 UTC).
> 
> Otherwise, we can always schedule a call outside of LPC, where
> participants not registered to LPC will be able to join (Chengguang?).
> 

I agree. Yes, 7:00 - 12:00 UTC works for me.

@Chengguang,
Could you please tell if 7:00 - 12:00 UTC works for you? If yes, then
shall we meet once to discuss about aops implementation for overlayfs.
Is today 11:am UTC ok with you? If yes, then shall we meet today using
below link?

https://meet.google.com/txn-hbjg-zgx


-ritesh


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Getting WIP aops branch(ovl-aops-wip) in shape for merging.
       [not found]                 ` <1742eff988b.f97421f5734.6795211467293709335@mykernel.net>
@ 2020-08-27  8:25                   ` Ritesh Harjani
  0 siblings, 0 replies; 7+ messages in thread
From: Ritesh Harjani @ 2020-08-27  8:25 UTC (permalink / raw)
  To: cgxu519, Amir Goldstein
  Cc: miklos, Aneesh Kumar K.V, linux-unionfs, Vivek Goyal



On 8/27/20 1:48 PM, Chengguang Xu wrote:
> 
> ---- On 星期四, 2020-08-27 15:36:46 Ritesh 
> Harjani<riteshh@linux.ibm.com> wrote ----
> 
> 
> 
>     On 8/27/20 12:12 PM, Amir Goldstein wrote:
>      > On Wed, Aug 26, 2020 at 5:27 PM Ritesh Harjani
>     <riteshh@linux.ibm.com <mailto:riteshh@linux.ibm.com>> wrote:
>      >>
>      >> Hello Amir,
>      >>
>      >> On 8/12/20 10:44 PM, Amir Goldstein wrote:
>      >>>> Sure. So here is what I was planning.
>      >>>> I am about to start going over patches mentioned in Amir's
>     ovl-aops-wip
>      >>>> branch. My first preference would be to port it to latest
>     upstream and
>      >>>> start cleaning it up.
>      >>>> I will update the branch details once those patches are ported to
>      >>>> latest upstream. Let me know if we should do this in any
>     different way.
>      >>>>
>      >>>
>      >>> Sounds like a plan.
>      >>>
>      >>>> I will also be joining this year's plumber, in case if we want
>      >>>> to discuss anything on this. Although I am not sure if by
>     then, I would
>      >>>> be able to get any substantial work done to discuss with a wider
>      >>>> audience. But nevertheless, we can always have a call/email
>     exchanges
>      >>>> for this, both before and after the conference :)
>      >>>>
>      >>>
>      >>> Nice. I will be giving a talk on new overlayfs features on the
>     containers track.
>      >>> I guess there won't be much in the hallway tracks this year...
>      >>
>      >>
>      >> I went over almost all patches which you have in ovl-aops-wip
>     branch.
>      >> For now I have only ported some of the straight forward patches,
>      >> since I had few queries on those other patches and one was mainly
>      >> w.r.t. metadata only feature functionality.
>      >>
>      >
>      > Those questions you can also ask Vivek if you find him in LPC...
> 
>     Sure, thanks. Will try to check with Vivek.
> 
>      >
>      >> Do you have sometime today to discuss about it in any of the LPC
>     hacker
>      >> room? I was thinking maybe discussing this in person will help a
>     lot.
>      >>
>      >
>      > I agree that a video meetup can be useful to kickoff this effort,
>     but
>      > it is preferred if Chengguang can also attend, because it feels like
>      > you guys need to collaborate.
>      >
>      >> Any preferred slot? I could not find you online on LPC chat area,
>      >> we can as well discuss the slot there. But I am fine with any of
>     the LPC
>      >> timings.
>      >>
>      >
>      > I cannot do LPC times today or tomorrow, but the hacker rooms are
>      > open and judging by the time of your email you may be closer to my
>      > time zone, so if you want to schedule a meeting somewhere in the
>     next
>      > 5 hours, I can join. (7:00-12:00 UTC).
>      >
>      > Otherwise, we can always schedule a call outside of LPC, where
>      > participants not registered to LPC will be able to join
>     (Chengguang?).
>      >
> 
>     I agree. Yes, 7:00 - 12:00 UTC works for me.
> 
>     @Chengguang,
>     Could you please tell if 7:00 - 12:00 UTC works for you? If yes, then
>     shall we meet once to discuss about aops implementation for overlayfs.
>     Is today 11:am UTC ok with you? If yes, then shall we meet today using
>     below link?
> 
>     https://meet.google.com/txn-hbjg-zgx
> 
>     11:am UTC is fine for me,I’ll be there if there’s nothing special.


Ok, gr8. Then let's meet at 11:am UTC timing on the same google meetup link
https://meet.google.com/txn-hbjg-zgx

-ritesh


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-08-27  8:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200313140843.5C65542045@d06av24.portsmouth.uk.ibm.com>
     [not found] ` <CAOQ4uxgabS0GMaMXHbhXoBv9OXAZv9O2WzZ-h9aWhZm6quASOg@mail.gmail.com>
     [not found]   ` <20200812140012.875A711C089@d06av25.portsmouth.uk.ibm.com>
     [not found]     ` <CAOQ4uxhf6R2Gr1wV_LGbAuDGuuPmnb0Mvx43MxWc2O1gQkrGUQ@mail.gmail.com>
2020-08-12 17:00       ` Getting WIP aops branch(ovl-aops-wip) in shape for merging Ritesh Harjani
2020-08-12 17:14         ` Amir Goldstein
2020-08-12 17:30           ` Ritesh Harjani
2020-08-26 14:27           ` Ritesh Harjani
2020-08-27  6:42             ` Amir Goldstein
2020-08-27  7:36               ` Ritesh Harjani
     [not found]                 ` <1742eff988b.f97421f5734.6795211467293709335@mykernel.net>
2020-08-27  8:25                   ` Ritesh Harjani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.