You are not logged in.

#1 2013-03-19 20:47:48

lea_b
Member
From: Argentina
Registered: 2010-10-07
Posts: 19

how to configure ulatencyd ?

Hi guys, today i try to improve my arch performance and find ulatencyd, but some troubles ocurred me:

I install from AUR / ulatencyd-git
enable and start via systemctl

but when i try test, this happens

$ulatency tree

Traceback (most recent call last):
  File "/usr/bin/ulatency", line 1200, in <module>
    main()
  File "/usr/bin/ulatency", line 1148, in main
    tree = Tree(**kwargs)
  File "/usr/bin/ulatency", line 445, in __init__
    path = self.get_path()
  File "/usr/bin/ulatency", line 498, in get_path
    path = CGROUP_MOUNTS.get(self.tree, None)[0]
TypeError: 'NoneType' object has no attribute '__getitem__'

What I do wrong?

I running Kernel 3.8.3-2-ck (Con Kolivas for Sandybridge)


Also wiki says i need this Kernel options:

PROC_EVENTS=y
CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_MEM_RES_CTLR=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_BLK_CGROUP=y
CONFIG_CFQ_GROUP_IOSCHED=y

but don't describe were a put there. So i put in kernel line on grub.

Offline

#2 2013-03-19 21:27:57

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: how to configure ulatencyd ?

That's most likely because -ck kernel uses BFS as a CPU scheduler,  and it does not support all of cgroup as stated in BFS FAQ. See if it works on stock kernel.

Last edited by kaszak696 (2013-03-19 21:28:48)


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#3 2013-03-20 10:50:07

lea_b
Member
From: Argentina
Registered: 2010-10-07
Posts: 19

Re: how to configure ulatencyd ?

OK, I start stock Kernel with

PROC_EVENTS=y
CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_MEM_RES_CTLR=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_BLK_CGROUP=y
CONFIG_CFQ_GROUP_IOSCHED=y

on the grub kernel line, and run:

$ulatency tree

same result

Traceback (most recent call last):
  File "/usr/bin/ulatency", line 1200, in <module>
    main()
  File "/usr/bin/ulatency", line 1148, in main
    tree = Tree(**kwargs)
  File "/usr/bin/ulatency", line 445, in __init__
    path = self.get_path()
  File "/usr/bin/ulatency", line 498, in get_path
    path = CGROUP_MOUNTS.get(self.tree, None)[0]
TypeError: 'NoneType' object has no attribute '__getitem__'

Offline

#4 2013-03-20 10:56:30

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: how to configure ulatencyd ?

lea_b wrote:

on the grub kernel line, and run:

Wait, what? Kernel has to be compiled with these options, and kernel from core is already compiled with them. They are not meant for grub.
If it doesn't work on default kernel, it might be a bug.


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#5 2013-03-20 11:13:22

lea_b
Member
From: Argentina
Registered: 2010-10-07
Posts: 19

Re: how to configure ulatencyd ?

I remove the options on grub's kernel line and run again stock and  -ck kernels, with same results.

I dont think this was a bug. I do everything just like says the arch wiki https://wiki.archlinux.org/index.php/Ulatencyd

thanks for your help.

Offline

Board footer

Powered by FluxBB