Permalink
Browse files

Merge branch 'master' of github.com:poelzi/ulatencyd into develop

  • Loading branch information...
2 parents 4f3ea0a + 30d819c commit d6f0603a74c92661f274a071a1e4e57c039a8063 @poelzi committed Apr 20, 2011
Showing with 53 additions and 15 deletions.
  1. +4 −0 CMakeLists.txt
  2. +23 −0 ChangeLog
  3. +8 −0 NEWS
  4. +0 −2 README
  5. +0 −7 TODO
  6. +1 −2 conf/cgroups.conf
  7. +8 −1 conf/scheduler/30-single-task.lua
  8. +2 −1 conf/scheduler/50-video_playback.lua
  9. +1 −1 rules/scheduler.lua
  10. +1 −0 src/config.h.tmpl
  11. +4 −0 src/core.c
  12. +1 −1 src/ulatency.h
View
@@ -34,6 +34,10 @@ endif(ENABLE_DBUS)
pkg_check_modules(GIO gio-2.0 REQUIRED)
+if(POLKIT_FOUND)
+ INCLUDE (CheckLibraryExists)
+ CHECK_LIBRARY_EXISTS(polkit-gobject-1 polkit_authority_get_sync "" POLKIT_HAVE_GET_SYNC)
+endif(POLKIT_FOUND)
# FIXME: libproc should export more symbols
# find libproc
View
@@ -1,4 +1,27 @@
+0.5.0 / 2011-04-05
+==================
+
+ * bump version
+ * fix single task config
+ * hide videoplayback for now
+ * test if subsystem is loaded
+ * Merge branch 'master' into develop
+ * fix missing labels on game and single_task config
+ * add video_playback config
+ * cache available cgroup names
+ * add xfce & lxde configs
+ * list configs with no info object as well
+ * better error reporting and handling
+ * better error messages on connecting errors
+ * retry process lookup in remote api calls
+ * install all man pages
+ * fix typo schduler -> scheduler in ulatency
+ * add manpage for run-single-task
+ * add manpage for run-game
+ * add ulatency-gui to ulatency.1 manpage
+ * fix goption warning for G_OPTION_FLAG_NO_ARG
+
0.5.0-rc3 / 2011-03-24
==================
View
8 NEWS
@@ -1,3 +1,11 @@
+0.5.0
+=====
+ - Policykit support
+ - Configs for single task & games
+ - XFCE & LXDE support
+ - updated documentation
+ - GUI/CLI updates
+
0.4.9
=====
- Bugfixes
View
2 README
@@ -1,5 +1,3 @@
-WARNING: this program is under development and only suited for testing.
-
== What is ulatency ==
Ulatency is a daemon that controls how the Linux kernel will spend it's
View
7 TODO
@@ -10,13 +10,6 @@ TODO:
- interface for user wishes pinning to different parameters (cli)
- rules rules rules ;-)
-- often a process is spawned and dies quite quickly. if it is spawned from a already
- scheduled subprocess, the rules and scheduler code gets applied. this can cause
- quite a load on ulatencyd, when a lot of processes get spawned and die quickly.
- having an aging stack for new processes that have to exist for at least n ms
- before they get run through the pipe should decrease the load on the daemon. the
- processes will exist in the parent group as long as they are not run yet
-
- optimize src/proc.
it is a fork of the libproc that could need some optimizations. currently we use
quite many read flags that do unnessery mallocs and reading of values that are
View
@@ -32,6 +32,5 @@ CGROUP_DEFAULT = {
cpu={["notify_on_release"] = "1",},
memory={["notify_on_release"] = "1",},
io={["notify_on_release"] = "1",},
--- cpuset={["?cpuset.cpus"] = "0-"..tostring((ulatency and ulatency.smp_num_cpus-1 or 0)),
--- ["?cpuset.mems"] = "0",},
+ cpuset={["notify_on_release"] = "1",},
}
@@ -81,7 +81,7 @@ SCHEDULER_MAPPING_SINGLE_TASK["cpu"] =
name = "system",
cgroups_name = "sys",
check = function(proc)
- return ( proc.euid > 999 )
+ return ( proc.euid < 1000 )
end,
param = { ["cpu.shares"]="100", ["?cpu.rt_runtime_us"] = "100" },
children = {
@@ -95,6 +95,13 @@ SCHEDULER_MAPPING_SINGLE_TASK["cpu"] =
param = { ["cpu.shares"]="30",
["?cpu.rt_runtime_us"] = "1"},
},
+ {
+ name = "kernel",
+ cgroups_name = "",
+ check = function(proc)
+ return (proc.vm_size == 0)
+ end
+ },
}
},
}
@@ -8,7 +8,8 @@
SCHEDULER_MAPPING_VIDEO_PLAYBACK = {
info = {
- description = "a scheduler for video playback"
+ description = "a scheduler for video playback. EXPERIMENTAL",
+ hidden = true
}
}
View
@@ -217,7 +217,7 @@ function Scheduler:_one(proc, single)
end
for x,subsys in ipairs(ulatency.get_cgroup_subsystems()) do
map = self.MAPPING[subsys] or SCHEDULER_MAPPING_DEFAULT[subsys]
- if map then
+ if map and ulatency.tree_loaded(subsys) then
local mappings = run_list(proc, map)
--pprint(mappings)
group = map_to_group(proc, mappings, subsys)
View
@@ -29,6 +29,7 @@
#cmakedefine ENABLE_DBUS
#cmakedefine DEVELOP_DBUS_SESSION
#cmakedefine POLKIT_FOUND
+#cmakedefine POLKIT_HAVE_GET_SYNC
#cmakedefine DEVELOP_MODE
#ifdef DEVELOP_MODE
#define RELEASE_AGENT ${CMAKE_CURRENT_BINARY_DIR}/src/ulatencyd_cleanup.lua
View
@@ -1809,7 +1809,11 @@ int core_init() {
#endif
#ifdef POLKIT_FOUND
+#ifdef POLKIT_HAVE_GET_SYNC
U_polkit_authority = polkit_authority_get_sync (NULL, NULL);
+#else
+ U_polkit_authority = polkit_authority_get();
+#endif
#endif
// delay stack
delay_stack = g_ptr_array_new_with_free_func(free);
View
@@ -52,7 +52,7 @@
__VA_ARGS__)
-#define VERSION 0.5.0-rc3
+#define VERSION 0.5.0
#define OPENPROC_FLAGS (PROC_FILLMEM | \
PROC_FILLUSR | PROC_FILLGRP | PROC_FILLSTATUS | PROC_FILLSTAT | \

0 comments on commit d6f0603

Please sign in to comment.