login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
April
»
4
Re: [sched] redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ingo Molnar
Subject:
Re: [sched] redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array
Date: Wednesday, April 4, 2007 - 7:15 am
* Dmitry Adamushko <dmitry.adamushko@gmail.com> wrote:
quoted text
> Hello, > > Scenario: > > Currently running [task1] boosts a priority (lowers a static_prio) of > [task2] via { setpriority -> set_user_nice } and [task2] happens to be > in the "expired" array at the moment. > > According to the set_user_nice(), "delta" is negative (the prio is > boosted) and, hence, resched_task(rq->curr) is called. > > As the [task2] is in the "expired" array and there are still tasks (at > least [task1]) in the "active" one, the triggered reschedule is just > useless (e.g. gets control back to [task1]). > > Am I missing something? > > The same is applicable to rt_mutex_setprio(). > > Of course, not a big deal, but it's easily avoidable, e.g. (delta < 0 > && array == rq->active).
i think you are right and a micro-optimization could be done here. Would you like to do a patch for this? Ingo -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[sched] redundant reschedule when set_user_nice() boosts a ...
, Dmitry Adamushko
, (Wed Apr 4, 7:04 am)
Re: [sched] redundant reschedule when set_user_nice() boos ...
, Ingo Molnar
, (Wed Apr 4, 7:15 am)
Re: [sched] redundant reschedule when set_user_nice() boos ...
, Dmitry Adamushko
, (Wed Apr 4, 8:23 am)
[PATCH] [sched] redundant reschedule when set_user_nice() ...
, Dmitry Adamushko
, (Wed Apr 4, 1:05 pm)
Re: [PATCH] [sched] redundant reschedule when set_user_nic ...
, Andrew Morton
, (Fri Apr 6, 5:03 pm)
Re: [PATCH] [sched] redundant reschedule when set_user_nic ...
, Dmitry Adamushko
, (Sat Apr 7, 2:16 am)
Re: [PATCH] [sched] redundant reschedule when set_user_nic ...
, Ingo Molnar
, (Sat Apr 7, 2:19 am)
Re: [PATCH] [sched] redundant reschedule when set_user_nic ...
, Ingo Molnar
, (Sat Apr 7, 2:24 am)
SD scheduler testing hitch
, Mike Galbraith
, (Sat Apr 7, 9:20 am)
Re: SD scheduler testing hitch
, Mike Galbraith
, (Sat Apr 7, 10:17 am)
Re: SD scheduler testing hitch
, Mike Galbraith
, (Sun Apr 8, 1:02 am)
Re: SD scheduler testing hitch
, Dmitry Adamushko
, (Sun Apr 8, 5:14 pm)
Re: SD scheduler testing hitch
, Dmitry Adamushko
, (Sun Apr 8, 5:23 pm)
Re: SD scheduler testing hitch
, Mike Galbraith
, (Sun Apr 8, 10:54 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate