7b173a148befe5fdc6ce7485238ff2f51d1995a2 |
|
04-Apr-2016 |
Martijn Coenen <maco@google.com> |
Update get_sched_policy to return TOP_APP correctly. Currently get_sched_policy() would only return foreground or background, but not TOP_APP, since it's not looking at CPUsets at all. Fixing this makes testing easier, and it also corrects the output of "ps -P" to show "ta" for current top app. Bug: 27857142 Change-Id: I589cacc107f355de15750f01b06f404b59a0f99b
/system/core/libcutils/sched_policy.c
|
d125f6e8a95a998d74175df49d54251489723933 |
|
26-Feb-2016 |
Todd Kjos <tkjos@google.com> |
Merge "Mount schedTune cgroup as /dev/stune" into nyc-dev
|
b43225eefb0e60858755d72103f9f9b53785b5d9 |
|
19-Nov-2015 |
Tim Murray <timmurray@google.com> |
Fix build break with uninitialized boost_fd. Change-Id: Icf209e2e0f4835db01f61dbf83b4715db9ef03a9 (cherry picked from commit def6c151f400b497c2a4f1f60b442358ea9a4209)
/system/core/libcutils/sched_policy.c
|
11cde567a8fd6fd37cd462e24dd97d0f57bb12a4 |
|
23-Feb-2016 |
Todd Kjos <tkjos@google.com> |
Mount schedTune cgroup as /dev/stune Make stune consistent with the other cgroups mounted under /dev Change-Id: I0fe7120ad2afbe8e6a3c9f72cc3f465de618d344
/system/core/libcutils/sched_policy.c
|
6647bb51301ea101b73e7431888f70bb35a4fabb |
|
12-Jan-2016 |
Tim Murray <timmurray@google.com> |
Enable top-app cpuset support. Allows ActivityManager to use the top-app cpuset to grant the currently focused app exclusive access to a CPU core. Change-Id: I45bca5170477e413dec6e5889338399d0859706c
/system/core/libcutils/sched_policy.c
|
4284f9f3a3d471208d7a9341056e4d7af886dab3 |
|
10-Nov-2015 |
Tim Murray <timmurray@google.com> |
Improve cpuset support for surfaceflinger. SurfaceFlinger needs some of its threads in the system-background cpuset and some of its threads (the binder pool) outside of the system-background cpuset in order to improve UI perf/power consumption. Remove surfaceflinger from the system-background cpuset in init.rc and allow a thread to place itself in the system-background cpuset given enough permissions. bug 25745866 Change-Id: I85f7e41c5439e6ad7cc2d355e51f5dfb3a0c7088
/system/core/libcutils/sched_policy.c
|
ba8a47531c5ebc5e1322088354d2114f6892f3fd |
|
27-Oct-2015 |
Todd Kjos <tkjos@google.com> |
Actively mangage EAS schedtune nodes Move foreground tasks to /sys/fs/cgroup/stune/boost/tasks (boosted weight in EAS scheduler). Move background tasks to /sys/fs/cgroup/stune/tasks (default weight). For services started with init, set "foreground" services to boosted. Change-Id: I0e489fad9510727c13e6754dabaf311c2391f395
/system/core/libcutils/sched_policy.c
|
5ec940aed81b35b497c65b27a98d2ddf595cb525 |
|
30-Jul-2015 |
Elliott Hughes <enh@google.com> |
am fb1ecbc5: am e6e71608: Merge "Use __ANDROID__ instead of HAVE_ANDROID_OS." * commit 'fb1ecbc55e7edeafb138eb2a60ca89ba9a7b1f0f': Use __ANDROID__ instead of HAVE_ANDROID_OS.
|
9b828adfad09200f3f1bd3602187fe3dd5335774 |
|
30-Jul-2015 |
Elliott Hughes <enh@google.com> |
Use __ANDROID__ instead of HAVE_ANDROID_OS. Change-Id: I9967f3fd758c2a5b40be5b60ae72be7e2fb75136
/system/core/libcutils/sched_policy.c
|
919bb66f73c679cf81efc6d2433ad75197891ba6 |
|
25-Jul-2015 |
Elliott Hughes <enh@google.com> |
Fix libcutils build. Change-Id: I4df2065f60f5363877809161298c1f9718252934 (cherry picked from commit 8a8953bb3dcad58c560e4c6247b7897a2a6122d1)
/system/core/libcutils/sched_policy.c
|
1fb6e24f19533c2d7bfa1e8e69443d752e9df3ce |
|
30-Jun-2015 |
Todd Kjos <tkjos@google.com> |
Merge "Fix janky navbar ripples -- incorrect timerslack values" into mnc-dev
|
4cdce427f9ba0339ac7c58fdb4f56ac3630abf34 |
|
25-Jun-2015 |
Todd Kjos <tkjos@google.com> |
Fix janky navbar ripples -- incorrect timerslack values If a thread is created while the parent thread is "Background", then the default timerslack value gets set to the current timerslack value of the parent (40ms). The default value is used when transitioning to "Foreground" -- so the effect is that the timerslack value becomes 40ms regardless of foreground/background. This does occur intermittently for systemui when creating its render thread (pretty often on hammerhead and has been seen on shamu). If this occurs, then some systemui animations like navbar ripples can wait for up to 40ms to draw a frame when they intended to wait 3ms -- jank. This fix is to explicitly set the foreground timerslack to 50us. A consequence of setting timerslack behind the process' back is that any custom values for timerslack get lost whenever the thread has transition between fg/bg. See Bug: 19398120 Change-Id: Idc259717f62fa2255f8bafbbf88b68c0043f29cf
/system/core/libcutils/sched_policy.c
|
999102664c4aa752d7e90c7c5ec5da9e1d648ac9 |
|
22-Jun-2015 |
Tim Murray <timmurray@google.com> |
Don't set cgroup policy when updating cpusets. bug 21782794 Change-Id: I3b2cf8ae4f3ed0c14f206584ae7fa2b1a1d11ad0
/system/core/libcutils/sched_policy.c
|
b769c8d24fd7be96f8968aa4c80b669525b930d3 |
|
08-Jun-2015 |
Tim Murray <timmurray@google.com> |
add cpuset support to libcutils bug 21782794 Change-Id: I249531754fb29442dc3c7434d77dbb103f4220a7
/system/core/libcutils/sched_policy.c
|
27484f2e740950e5b6260b7c3e086f98f019317b |
|
15-Dec-2014 |
Elliott Hughes <enh@google.com> |
am fae953eb: Merge "HAVE_ANDROID_OS implies that you have <pthread.h> and <sched.h>." * commit 'fae953ebccfabfa500b3ebca93202063c8e3501d': HAVE_ANDROID_OS implies that you have <pthread.h> and <sched.h>.
|
6acf3d7703cbbb7ca0585599aa731996e54bc726 |
|
15-Dec-2014 |
Elliott Hughes <enh@google.com> |
HAVE_ANDROID_OS implies that you have <pthread.h> and <sched.h>. Change-Id: Ica7940c00d1d5da9d50711fd138dd459deec9b6d
/system/core/libcutils/sched_policy.c
|
d1380d645de163d34a6e590f82eb0ee40d51f408 |
|
08-Oct-2014 |
Riley Andrews <riandrews@google.com> |
am 33b33549: Merge "Make the default cgroup, the foreground cgroup." into lmp-mr1-dev * commit '33b335495c7b8eea4b9af13a7157cf83cd085129': Make the default cgroup, the foreground cgroup.
|
522d72b7020a7d2f975531c7214ff34225391aba |
|
04-Oct-2014 |
Riley Andrews <riandrews@google.com> |
Make the default cgroup, the foreground cgroup. All kernel services will now be in the same cgroup as foreground applications. This will now make kernel threads not implicitly higher priority than android foreground services. Bug 17681097 Change-Id: I28e81c7aade50428d5395df86f00ce01c1e7af02
/system/core/libcutils/sched_policy.c
|
10cce72c4bbc8bb8e6466b5511e178321862658a |
|
18-Aug-2014 |
Elliott Hughes <enh@google.com> |
am 3859029a: am 7fb0ee0c: Merge "Remove androidGetTid." * commit '3859029a48aa78150fa61eb4988214f8632b33ce': Remove androidGetTid.
|
b7659613b2eed5df47e3e7ec536012772cc08b61 |
|
18-Aug-2014 |
Elliott Hughes <enh@google.com> |
Remove androidGetTid. Bug: 17048545 Change-Id: I93cbb2d7bd18d506b5f5f7f262dd9ac0fca053b4
/system/core/libcutils/sched_policy.c
|
400c381835b9eed533c67a062d88af5365590f7f |
|
18-Jul-2014 |
Elliott Hughes <enh@google.com> |
Move sched_policy.c off bionic's PR_SET_TIMERSLACK_PID. Change-Id: I3a27803d46b5b88a10aa8043a114d780ed685e56
/system/core/libcutils/sched_policy.c
|
e07d77e422b328f0b7e8a542e99989dab8c95dac |
|
12-Jul-2014 |
Elliott Hughes <enh@google.com> |
Use <sys/prctl.h> instead of <linux/prctl.h>. Change-Id: I708da00e36a9da8be9184c451453774be6b78c06
/system/core/libcutils/sched_policy.c
|
b8f86480a28b8a57628383a49d7fc63a4f1d5971 |
|
02-May-2014 |
Mark Salyzyn <salyzyn@google.com> |
am a0a461d3: am 82e1b89f: am a32e01d2: Merge "libcutils: turn on -Werror" * commit 'a0a461d3b7d85484c10db64f078427a5be3da189': libcutils: turn on -Werror
|
12717169a51335f4b20b7c78a63b9ab66a81a366 |
|
30-Apr-2014 |
Mark Salyzyn <salyzyn@google.com> |
libcutils: turn on -Werror - Deal with some -Wunused / -Wunused-variable issues Change-Id: I28c23fb213382a392ec30935749fb359e072d664
/system/core/libcutils/sched_policy.c
|
f4362ccdd513c0c2b6d3bb17a50b0ef114d59557 |
|
24-Apr-2014 |
Ruchi Kandoi <kandoiruchi@google.com> |
Fix build problems caused by commit: 422852ef5c0c2b0b5e031f80f480486df3d185a0 for non-linux hosts. Change-Id: I00b9c99b9d9d072f19549b3a9970a27e75cd49b7 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/core/libcutils/sched_policy.c
|
422852ef5c0c2b0b5e031f80f480486df3d185a0 |
|
23-Apr-2014 |
Ruchi Kandoi <kandoiruchi@google.com> |
Set timer slack value according to thread foreground/background state. Change-Id: Ia998f349129acf4602b767d1ff94839607fdbdbd Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/core/libcutils/sched_policy.c
|
29319a6753569fb3ef160c2de2f1c4d9d1398178 |
|
04-Jun-2012 |
Dima Zavin <dima@android.com> |
cutils: sched_policy: remove audio app/sys groups, merge into fg Bug: 6528015 Change-Id: I6c2658b62442d811b53c6d18476fbd6cd45f9e3f Signed-off-by: Dima Zavin <dima@android.com>
/system/core/libcutils/sched_policy.c
|
13ed76bfbce8e96604e781f88808b4d883891dde |
|
04-Jun-2012 |
Dima Zavin <dima@android.com> |
cutils: sched_policy: make bg group be nested under fg Adds an apps cgroup which will contain fg tasks. Move the bg group nested underneath it. Bug: 6538553 Change-Id: I55279415da625e15a5bb061c2b45fbe7f7a4c047 Signed-off-by: Dima Zavin <dima@android.com>
/system/core/libcutils/sched_policy.c
|
5b878d24c1f01a5f131d470280b51bcfb5638600 |
|
09-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Revert "Revert "Use O_CLOEXEC when opening cgroup fds."" This reverts commit 4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982.
/system/core/libcutils/sched_policy.c
|
bff8f3fa9848e52e3f3fe773796a03a80133992a |
|
09-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Add stubs for host builds. Bug: 4466013 Change-Id: I5633c841e71a48357bb04cd7ccc02550c17bde22
/system/core/libcutils/sched_policy.c
|
4df54bc4a85eacfff9c81dc0a7ebf3fd88a99982 |
|
08-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Revert "Use O_CLOEXEC when opening cgroup fds." This reverts commit e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7
/system/core/libcutils/sched_policy.c
|
e1440d81aef58e8b9983ab1f4540dc1fe5e63ab7 |
|
08-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Use O_CLOEXEC when opening cgroup fds. Bug: 4466013 Change-Id: I0d2e915fc550a0ecaccad5e452dd4c87fc878b8b
/system/core/libcutils/sched_policy.c
|
10ec3c7645bfdb70518dc1b21df40ad5478589e3 |
|
20-Apr-2012 |
Glenn Kasten <gkasten@google.com> |
Add more SP_ constants Change-Id: I52c8ea33b9b915fc08546f2ca0b191391f58506b
/system/core/libcutils/sched_policy.c
|
69bfb1f099164ae7ba44b5d0f7ba7c47cbbafd4d |
|
16-Mar-2012 |
Glenn Kasten <gkasten@google.com> |
Scheduling group cleanup - add comment, SP_DEFAULT Also tid == 0 maps to gettid() on platforms that support it. This is needed by mediaserver code that was formerly using the old C++ API. Change-Id: I8baaa3e42315c9b924cec26b6da01e7cb69e0078
/system/core/libcutils/sched_policy.c
|
86c7cc81891a69ace7044de667b0624c284ee82b |
|
06-Mar-2012 |
Glenn Kasten <gkasten@google.com> |
Add get_sched_policy_name() and use in ps and top This will make it easier to add additional policies (cgroups) if needed. Also added comments to the sched_policy APIs. Change-Id: I33ce1cc4deae10983241f7391294b7a512d2c47c
/system/core/libcutils/sched_policy.c
|
86b121523d7d3634bf5ac07b6e238b36b3e75f0a |
|
08-May-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
fix windows SDK build Change-Id: I2c563b20197803cafa91214aeff2c06fc0c75580
/system/core/libcutils/sched_policy.c
|
e43c248316d0faa7bdc23de823b068c2aa3520ab |
|
07-May-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
More fixes to Binder perf regression from Eclair Re-use the file descriptor to change the cgroups. There's a fast path in the kernel for the case where the value's already uncahnged. Also, this is okay because the kernel ignores the write offset. This is essentially a ioctl-ish/datagram interface, despite being a fd we're writing to. This reduces Dalvik->Dalvik void/void Binder calls on Sapphire from ~1.2 to ~0.8 ms. This is a bit slower than the ~0.7 ms we get avoiding the write altogether. strace confirms: [pid 1557] ioctl(21, 0xc0186201 <unfinished ...> [pid 1556] <... ioctl resumed> , 0x45399cd0) = 0 [pid 1556] write(22, "1556", 4) = 4 [pid 1556] ioctl(21, 0xc0186201 <unfinished ...> [pid 1555] <... ioctl resumed> , 0x45299cd0) = 0 [pid 1555] write(22, "1555", 4) = 4 [pid 1555] ioctl(21, 0xc0186201 <unfinished ...> [pid 1554] <... ioctl resumed> , 0x45199cd0) = 0 [pid 1554] write(22, "1554", 4) = 4 BUG=2660235 Change-Id: Ia9f9e1d5b792eaebc9560f89931faf6df0cf9c0d
/system/core/libcutils/sched_policy.c
|
253e27acb6c9e3e0b03c59f25cdf9ecbd64bcdad |
|
06-May-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Optimize set_sched_policy(), which gets called in every binder call. - use static /dev/cpuctl filenames, rather than sprintf() on the fly - use a custom formatter instead of sprintf() for the tid number This is a simplified version of Dan's original Ifc9c81f74fe65f0695ead53b30194bc6adf00da0 to be less risky for Froyo. Bug: 2660235 Change-Id: I744bbc2ec01fd2569612c814a497df40a933b622
/system/core/libcutils/sched_policy.c
|
7e8529a8b528fd30586aa037f15a31b29582c537 |
|
25-Mar-2010 |
San Mehat <san@google.com> |
system/core: Switch libsysutils & sched_policy LOG -> SLOG Change-Id: Id74c6895a8012c5915f2e259339101844de7c085 Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|
503df2075991cd03ddf43d14e05768a2138b9028 |
|
03-Mar-2010 |
San Mehat <san@google.com> |
cutils: sched_policy: Make getSchedulerGroup() play nicely with multiple control groups Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|
c1c38dd01c43079ed24b9030bc8a20c649bacc3f |
|
03-Dec-2009 |
San Mehat <san@google.com> |
system: sched_policy: Don't return an error when the thread we're trying to move exits on us Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|
805d67ab11c1bb21d494459d6167f5f67f0002eb |
|
29-Oct-2009 |
San Mehat <san@google.com> |
cutils: sched_policy: Fix bug where we were unable to move backgrounded threads into the foreground Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|
d2e4e46ce4bc29c3328fccfbbbe0590eaa8713f7 |
|
29-Oct-2009 |
San Mehat <san@google.com> |
cutils: schedpolicy: Add debug code to log sched policy transitions Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|
c0dfca7ae1f6016461235552091c2cacacca82a2 |
|
27-Oct-2009 |
San Mehat <san@google.com> |
cutils: Add support for reading a processes scheduler policy Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|
0384a98d6f61fa47ffde01c15e552f738e88fb94 |
|
16-Sep-2009 |
Raphael <raphael@google.com> |
Disable sched_policy under Windows. This introduces a new HAVE_SCHED_H arch define, which is used to prevent from building sched_policy.c during the Windows SDK. Change-Id: I3667857a4ae7d6baaf1efd1cd187a5baf91419d8
/system/core/libcutils/sched_policy.c
|
3cd5b66ba05cffe38bfa4e2da9b93292ba0b073a |
|
15-Sep-2009 |
San Mehat <san@google.com> |
libcutils: Dont include kernel header + add defines Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|
493dad966305a7fb555addd367532dd2af275a27 |
|
12-Sep-2009 |
San Mehat <san@google.com> |
libcutils: Add abstracted support for setting scheduler policies Also changes the background policy to use SCHED_BATCH. IDLEPRIO can cause 100% starvation. Signed-off-by: San Mehat <san@google.com>
/system/core/libcutils/sched_policy.c
|