linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [f2fs-dev] f2fs: cp_mutex starvation issue
@ 2020-11-18  9:47 stummala
  2020-11-18 10:07 ` Chao Yu
  0 siblings, 1 reply; 3+ messages in thread
From: stummala @ 2020-11-18  9:47 UTC (permalink / raw)
  To: Chao Yu; +Cc: Jaegeuk Kim, linux-f2fs-devel

Hi Chao,

Can we consider to move the sbi->cp_mutex as well to use rw_sem similar 
to this patch of yours -
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?id=fb24fea75ca5ceef59f753494b2efd453606e08a

We are observing issues where fsync() of a high priority task getting 
starved when there is heavy IO from several low priority tasks.
I would like to know if this was considered before and if any issues in 
doing so? Please share your inputs.

Thanks,
Sahitya.


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

* Re: [f2fs-dev] f2fs: cp_mutex starvation issue
  2020-11-18  9:47 [f2fs-dev] f2fs: cp_mutex starvation issue stummala
@ 2020-11-18 10:07 ` Chao Yu
  2020-11-18 11:29   ` stummala
  0 siblings, 1 reply; 3+ messages in thread
From: Chao Yu @ 2020-11-18 10:07 UTC (permalink / raw)
  To: stummala; +Cc: Jaegeuk Kim, linux-f2fs-devel

Hi Sahitya,

On 2020/11/18 17:47, stummala@codeaurora.org wrote:
> Hi Chao,
> 
> Can we consider to move the sbi->cp_mutex as well to use rw_sem similar
> to this patch of yours -
> https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?id=fb24fea75ca5ceef59f753494b2efd453606e08a
> 
> We are observing issues where fsync() of a high priority task getting
> starved when there is heavy IO from several low priority tasks.
> I would like to know if this was considered before and if any issues in
> doing so? Please share your inputs.

I missed to check cp_mutex lock, because I haven't been reported with
starving issue on this lock, anyway, I agree to do the same change on
cp_mutex lock, and I don't think there is any problem after change.

Could you please make one patch to fix this?

Thanks,

> 
> Thanks,
> Sahitya.
> .
> 


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

* Re: [f2fs-dev] f2fs: cp_mutex starvation issue
  2020-11-18 10:07 ` Chao Yu
@ 2020-11-18 11:29   ` stummala
  0 siblings, 0 replies; 3+ messages in thread
From: stummala @ 2020-11-18 11:29 UTC (permalink / raw)
  To: Chao Yu; +Cc: Jaegeuk Kim, linux-f2fs-devel

Hi Chao,

On 2020-11-18 15:37, Chao Yu wrote:
> Hi Sahitya,
> 
> On 2020/11/18 17:47, stummala@codeaurora.org wrote:
>> Hi Chao,
>> 
>> Can we consider to move the sbi->cp_mutex as well to use rw_sem 
>> similar
>> to this patch of yours -
>> https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/commit/fs/f2fs?id=fb24fea75ca5ceef59f753494b2efd453606e08a
>> 
>> We are observing issues where fsync() of a high priority task getting
>> starved when there is heavy IO from several low priority tasks.
>> I would like to know if this was considered before and if any issues 
>> in
>> doing so? Please share your inputs.
> 
> I missed to check cp_mutex lock, because I haven't been reported with
> starving issue on this lock, anyway, I agree to do the same change on
> cp_mutex lock, and I don't think there is any problem after change.
> 
> Could you please make one patch to fix this?

Thanks for the comments.
Sure, I will put up a patch for this.

Thanks,

> Thanks,
> 
>> 
>> Thanks,
>> Sahitya.
>> .
>> 


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

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

end of thread, other threads:[~2020-11-18 11:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-18  9:47 [f2fs-dev] f2fs: cp_mutex starvation issue stummala
2020-11-18 10:07 ` Chao Yu
2020-11-18 11:29   ` stummala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).