Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
strange system behavior and cgroups
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1640
Location: Switzerland (Romandie)

PostPosted: Mon Aug 15, 2016 1:01 pm    Post subject: strange system behavior and cgroups Reply with quote

My system is configured for real-time JACK audio, and having issues with other software, mainly the browsers, I experimented with different kernels. And here is what I get:

gentoo-sources-4.1.12:
Configured to use the cgroups realtime cpu functionality:
Code:
cat .config|grep CGROUP
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CGROUP_CPUACCT is not set
# CONFIG_CGROUP_HUGETLB is not set
# CONFIG_CGROUP_PERF is not set
CONFIG_CGROUP_SCHED=y
# CONFIG_BLK_CGROUP is not set
# CONFIG_NET_CLS_CGROUP is not set
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not set


Code:
cat cgconfig.conf
#namespace {
#   cpu = /;
#}

mount {
   cpu = /sys/fs/cgroup/cpu;
}

group rtaudio {
   perm {
      task {
         uid = root;
         gid = audio;
      }
      admin {
         uid = root;
         gid = root;
      }
   }
   cpu {
      cpu.rt_runtime_us = 900000;
   }
}


I use the fglrx driver with all my kernels, and due to an old firefox bug (broken 3D support with this driver, never fixed, becoming worst with time...), firefox is just unusable, but that's another issue.

It give me very good JACK performances, but google-chrome is rapidly eating up all the ram and swapping, which make the whole system to become very slow. Also, when quitting chrome, it doesn't free its ram (even after more than 1 hour later), which mean a reboot is the fastest solution to get an usable system again.

Also, my init system is openrc, and with this setup, openrc insist to put stuffs into the rt cgroup - even with rc_controller_cgroups="NO" in /etc/rc.conf, which I just don't want.

gentoo-sources-4.1.15-r1
Code:
cat .config|grep CGROUP
# CONFIG_CGROUPS is not set


No cgroups at all. I still get decent JACK performances, and with chrome, I can get at least 2 times more open tab before it begun to swap. Otherwise same issue.

rt-sources-4.4.7-rt16
Code:
cat .config|grep CGROUP
# CONFIG_CGROUPS is not set


No cgroups at all. Here the fun begun. JACK performances are best, which is normal. As with gentoo-sources-4.1.15-r1, I can get at least 2 times more open tab before it begun to swap, but it is faster than with the gentoo-sources, especially with stuffs like watching youtube videos. This last issue can maybe be related to the use of the jack ALSA plugin which I use to interface the ALSA software with JACK. It work pretty well, but the rt kernel seam to be less sensible to cpu overrun caused by the GUI of the softwares than any of the 2 other kernels.

How can I investigate it further? My goal would be to be able to use gentoo-sources as every day kernel, and not only when I use portage (gcc can fail without apparent raison when running a rt kernel - search for the gcc failures metabug, a good reading anyway).
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum