Bug#739859: ulatencyd: Ulatencyd don't do anithing

2014-03-04 Thread Petr Gajdůšek
Ne 2. březen 2014, 16:13:22 CET
Corcodel Marian a...@marian1000.go.ro napsal(a):

 This bug is because linux-kernel not have full support for cgroup.
 On linux debian package missing support also for CONFIG_CFS_BANDWIDTH,
 CONFIG_RT_GROUP_SCHED please send this bug on linux maintainers.
 


Hi Marian,

ulatencyd rules do not limit CPU bandwidth, unless you modified them.
So CONFIG_CFS_BANDWIDTH disabled in kernel has no effect.
CONFIG_RT_GROUP_SCHED disabled does not harm too, because ulatency do
not limit RT processes, it just moves them to separate cgroup. And IMHO
the VLC should not be running real-time.

It is easy to update rules to limit run time of process under RT
scheduler or their CPU bandwidth under CFS scheduler if you recompile
the kernel; but I am not sure this is what you want...

Because I don't understand why you tag VLC with user.poison flag. This
flag is designated for processes that are causing memory pressure. What
do you want to achieve? VLC is media player and therefore shouldn't
you want it to run smoothly? Similar you have amarok labelled with
user.idle, why? What problem are you trying to resolve?

Next you seem to be running systemd. I cannot see any cgroups in the
tree you pasted here. Either you have snipped the `ulatency tree`
output really unfortunately or your processes are not in those cgroups,
ulatencyd has put them. See
https://github.com/poelzi/ulatencyd/wiki/Faq#wiki-14does-it-work-with-systemd

1) Make sure you have cgroups controllers disabled in systemd so
it does not move processes from ulatencyd cgroups.

2) Copy ulatency python script (should be in /bin or /usr/bin, not
sure where) somewhere into under your home directory and apply attached
patch.

3) Run 
$ echo cpu memory blkio cpuset | xargs -n1 ./ulatency --flags tree 
tree.log
and attach the tree.log

4) Please, describe exactly what do you want to achieve and why.

Petr
commit 4f3ea0a25c236ed1af39350ca02e1fb45a9b172d
Author: Daniel Poelzleithner poe...@poelzi.org
Date:   Wed Apr 20 14:17:40 2011 +0200

show important group attributes in client

show a list of important group values next to the group name in tree output.

diff --git a/client/ulatency b/client/ulatency
index 6d84f5a..b6f0789 100755
--- a/client/ulatency
+++ b/client/ulatency
@@ -27,6 +27,11 @@ VERSION = '0.2'
 DEFAULT_TREE = cpu
 CGROUP_PATHS = {}
 CGROUP_SUBSYS = []
+GROUP_VALUES = [cpu.shares,
+cpuset.cpus, cpuset.cpu_exclusive,
+memory.limit_in_bytes, memory.memsw.limit_in_bytes,
+memory.swappiness, blkio.weight]
+GROUP_VALUES_HIDE = [, 0, 2147483647, 9223372036854775807]
 
 CONFIG_SINGLE_TASK = single_task
 
@@ -409,10 +414,12 @@ class Tree(object):
 }
 
 def __init__(self, tree=DEFAULT_TREE, processes=True, show_all=True,
- utf = True, color = False, flags = False, cmdline = False):
+ utf = True, color = False, flags = False, cmdline = False,
+ group_values=True):
 self.tree = tree
 self.processes = processes
 self.show_all = show_all
+self.group_values = group_values
 self.utf = utf
 self.flags = flags
 self.cmdline = cmdline
@@ -423,13 +430,13 @@ class Tree(object):
 process = u({0.yellow}{1}{0.default} {2}),
 subtree = u({0.bold}{0.black}{1}{0.default}),
 tree= u({0.bold}{0.black}{1}{2}{3}{0.default}{0.green}) +
-  u({5}{0.bold}{0.black}{4}{0.default}),
+  u({5}{0.bold}{0.black}{4}{0.black}{6}{0.default}),
 file= u({0.bold}{0.black}{1}{2}{3}{0.default}{4}{5}{0.magenta}{6}{0.default}) )
 else:
 self.color = drug(
 process = u({1} {2}),
 subtree = u({1}),
-tree= u({1}{2}{3}{5}{4}),
+tree= u({1}{2}{3}{5}{4}{6}),
 file= u({1}{2}{3}{4}{5}{6}) )
 path = self.get_path()
 if path:
@@ -547,11 +554,27 @@ class Tree(object):
 islast or self.boxes[self.utf].branch,
 self.boxes[self.utf].file, process, fpad, flags))
 return
+values = 
+if self.group_values:
+for value in GROUP_VALUES:
+vpath = os.path.join(branch.path, value)
+if os.path.exists(vpath):
+with open(vpath) as fp:
+cont = fp.read().replace(\n, )
+if cont not in GROUP_VALUES_HIDE:
+if values:
+values +=  {0}={1}.format(value, cont)
+else:
+values += {0}={1}.format(value, cont)
+if values:
+values = (max(3, 20 - len(padding) - len(branch.name)))*  + values
+
 

Bug#739859: ulatencyd: Ulatencyd don't do anithing

2014-03-04 Thread Corcodel Marian
Package: ulatencyd
Version: 0.5.0-8
Followup-For: Bug #739859

Somewhat working but not how expected.
When on program run outside ulatencyd is eat all time on processor and
remain 10% on vlc how expected but only on loading others process.
Here is good point to start on fake program to  artificial increase
loading processor and transmit fake result to be use on control
ulatencyd and limit acces on processor.
Ideea is when is set on 10% vlc and others to start and run on 10%
no matter what.



-- System Information:
Debian Release: jessie/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ulatencyd depends on:
ii  dbus   1.8.0-1
ii  dpkg   1.17.6
ii  libc6  2.17-97
ii  libdbus-1-31.8.0-1
ii  libdbus-glib-1-2   0.102-1
ii  libglib2.0-0   2.38.2-5
ii  liblua5.1-05.1.5-5
ii  libpolkit-gobject-1-0  0.105-4
ii  libxau61:1.0.8-1
ii  libxcb11.10-2
ii  lua-posix  29-7
ii  lua5.1 [lua]   5.1.5-5

Versions of packages ulatencyd recommends:
ii  consolekit  0.4.6-4

ulatencyd suggests no packages.

-- Configuration Files:
/etc/init.d/ulatencyd [Errno 2] No such file or directory: 
u'/etc/init.d/ulatencyd'
/etc/ulatencyd/simple.conf changed:
plugin-containeruser.poison
/etc/ulatencyd/simple.d/video.conf changed:
?mplayer* user.media
mplayer*  user.media
xine  user.media
?vlc  user.poison
vlc   user.poison
dragonuser.media
totem user.media
kplayer   user.media
kmplayer  user.media
kaffeine  user.media


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#739859: ulatencyd: Ulatencyd don't do anithing

2014-03-02 Thread Corcodel Marian
This bug is because linux-kernel not have full support for cgroup.
On linux debian package missing support also for CONFIG_CFS_BANDWIDTH,
CONFIG_RT_GROUP_SCHED please send this bug on linux maintainers.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#739859: ulatencyd: Ulatencyd don't do anithing

2014-02-24 Thread Petr Gajdusek
Hi Marian, 

I can see nothing fatal in the logs.

Can you past output of

$ echo cpu memory blkio cpuset | xargs -n1 ulatency --flags tree

while vlc is running?

PS: I am sending this as new mail from webmail as I am not able to reply 
directly; my SMTP server is down and this mail was already POPed and removed 
from the mailbox. Please let me know if you subscribe to the bug so I need not 
to CC you and break your thread.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#739859: ulatencyd: Ulatencyd don't do anithing

2014-02-23 Thread Corcodel Marian
Package: ulatencyd
Version: 0.5.0-7
Severity: normal

My sistem is with sistemd
# systemctl status ulatencyd.service
ulatencyd.service - Latency reducing daemon for linux
  Loaded: loaded (/lib/systemd/system/ulatencyd.service; enabled)
  Active: active (running) since Sun, 23 Feb 2014 12:56:48 +0200; 8min
ago
Main PID: 1103 (ulatencyd)
  CGroup: name=systemd:/system/ulatencyd.service
  └ 1103 /usr/sbin/ulatencyd

ulatencyd[1103]: ** (ulatencyd:1103): WARNING **: CK Error: Could not get owner
of name 'org.freed...h name
Feb 23 12:56:49 ulatencyd[1103]: simplerules-Message: load simple rules
directory: /etc/ulatencyd/simple.d
Feb 23 12:56:49 ulatencyd[1103]: xwatch-Message: x server observation active.
poll interval: 500
Feb 23 12:56:49  ulatencyd[1103]: ** Message: load rule directory:
/etc/ulatencyd/rules
Feb 23 12:56:49  ulatencyd[1103]: ** Message: load rule directory:
/etc/ulatencyd/scheduler
Feb 23 12:56:51  ulatencyd[1103]: ** Message: ulatencyd started successfull
Feb 23 12:56:51  ulatencyd[1103]: ** (ulatencyd:1103): WARNING **: failed to
get data: Error receiving data: No buf...ilable
Feb 23 13:04:27  ulatencyd[1103]: ** (ulatencyd:1103): WARNING **: pid: 2524
parent 2522 missing. attaching to pid 1
Feb 23 13:04:27  ulatencyd[1103]: ** (ulatencyd:1103): WARNING **: pid: 2524
parent 2522 missing. attaching to pid 1
Running from terminal:
 systemctl stop ulatencyd.service
systemctl start ulatencyd.service
have same efect on vlc program



-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ulatencyd depends on:
ii  dbus   1.6.8-1+deb7u1
ii  dpkg   1.16.12
ii  libc6  2.13-38+deb7u1
ii  libdbus-1-31.6.8-1+deb7u1
ii  libdbus-glib-1-2   0.100.2-1
ii  libglib2.0-0   2.33.12+really2.32.4-5
ii  liblua5.1-05.1.5-4
ii  libpolkit-gobject-1-0  0.105-3
ii  libxau61:1.0.7-1
ii  libxcb11.8.1-2+deb7u1
ii  lua-posix  5.1.19-2
ii  lua5.1 [lua]   5.1.5-4

ulatencyd recommends no packages.

ulatencyd suggests no packages.

-- Configuration Files:
/etc/ulatencyd/simple.d/audio.conf changed:
amarok   user.idle
clementine   user.media
cmd:python*exaile.py*user.media
listen   user.media
mpd  user.media
parole   user.media
rhythmboxuser.media
xmms2d   user.media
banshee* user.media

/etc/ulatencyd/simple.d/video.conf changed:
?mplayer* user.media
mplayer*  user.media
xine  user.media
?vlc  user.poison
vlc   user.poison
dragonuser.media
totem user.media
kplayer   user.media
kmplayer  user.media
kaffeine  user.media
plugin-containe   user.poison


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org