From: EunTaik Lee <eun.taik.lee@samsung.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: "rjw@rjwysocki.net" <rjw@rjwysocki.net>,
"len.brown@intel.com" <len.brown@intel.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Re: [RFC PATCH] suspend/resume performance improvement
Date: Wed, 27 May 2015 10:38:10 +0000 (GMT) [thread overview]
Message-ID: <2002354124.810441432723088778.JavaMail.weblogic@epmlwas01d> (raw)
On Tue 2015-05-27 16:50 (GMT+09:00), Pavel Machek wrote:
>> So, instead of depending on a userspace task's time
>> slice, let kworker do the work to avoid a long wait
>> on the runqueue.
>
>...so if you really want high priority for that operation, just renice
>yourself to higher priority or something...
The problem occured on Android L version. KK had autosuspend enabled
but it was disabled in L to allow userspace to collect stats.
The delay was inside try_to_freeze_tasks function (at system_server thread of system_server process).
system_server got preempted after unlocking the tasklist_lock.
46 while (true) {
47 todo = 0;
48 read_lock(&tasklist_lock);
49 for_each_process_thread(g, p) {
50 if (p == current || !freeze_task(p))
51 continue;
52
53 if (!freezer_should_skip(p))
54 todo++;
55 }
56 read_unlock(&tasklist_lock);
All of the threads of system_server process that was on the runqueue did not run during this period.
Freezing of tasks resumed after other tasks went out of the runqueue.
I have tested with the lowest nice value but the problem was still, although less, reproducible.
Best Regards,
Euntaik Lee
next reply other threads:[~2015-05-27 10:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 10:38 EunTaik Lee [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-27 1:41 Re: [RFC PATCH] suspend/resume performance improvement EunTaik Lee
2015-05-27 1:32 EunTaik Lee
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=2002354124.810441432723088778.JavaMail.weblogic@epmlwas01d \
--to=eun.taik.lee@samsung.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@rjwysocki.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).