From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Changman Lee <cm224.lee@samsung.com>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>, linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [PATCH] fs/f2fs: add cond_resched() to sync_dirty_dir_inodes()
Date: Tue, 03 Mar 2015 09:22:37 +0100 [thread overview]
Message-ID: <54F56F4D.7000202@linutronix.de> (raw)
In-Reply-To: <20150303011303.GC6541@lcm-devel.org>
On 03/03/2015 02:13 AM, Changman Lee wrote:
> Hi Sebastian,
Hi Jaegeuk,
> After this patch, your test is all done without any CPU stall, Right?
correct.
> IMHO, context should be switched without cond_resched() after consumed
> own time quota. So, it just reduces system latency due to yielding.
Correct but without preemption enabled there is no time quota. I still
have the >5sec printk but since the task schedules away I don't have a
"problem" anymore.
> I thought another way to discard pages of inode to be evicted in merged bio
> instead of submit. If so, evict() doesn't need to wait for writeback.
You are lucky that the workqueue code is aware of "that". That means it
will schedule another worker if the current task schedules away because
it waits for something. Otherwise you would stall other worker.
If you could solve it in another way, that would be better than just
polling for it.
> Just my curiousity out of this problem.
>
> Thanks,
Sebastian
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
next prev parent reply other threads:[~2015-03-03 8:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-20 20:10 f2fs freezes the machine Sebastian Andrzej Siewior
2015-02-23 23:33 ` Jaegeuk Kim
2015-02-24 1:20 ` Nicholas Krause
2015-02-27 12:13 ` [PATCH] fs/f2fs: add cond_resched() to sync_dirty_dir_inodes() Sebastian Andrzej Siewior
2015-03-03 1:13 ` Changman Lee
2015-03-03 1:32 ` nick
2015-03-03 8:22 ` Sebastian Andrzej Siewior [this message]
2015-06-12 13:28 ` Sebastian Andrzej Siewior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54F56F4D.7000202@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=cm224.lee@samsung.com \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).