1 |
On Friday, June 06, 2014 03:45:17 AM covici@××××××××××.com wrote: |
2 |
> J. Roeleveld <joost@××××××××.org> wrote: |
3 |
> > On Friday, June 06, 2014 01:59:18 AM covici@××××××××××.com wrote: |
4 |
> > > Hi. I am having some strange performance problems when booted under |
5 |
> > > systemd. These problems happened a little bit under openrc, but are |
6 |
> > > much more pronounced with systemd. |
7 |
> > |
8 |
> > I don't think it's necessarily systemd itself, just a setting that systemd |
9 |
> > does differently then openrc. See below for more. |
10 |
> > |
11 |
> > > I am using just virtual consoles, no gui whatsoever at the moment. I |
12 |
> > > also use tmux with 4 windows in one of the vcs. My system is an i7 |
13 |
> > > processor, quod core and 16g of ram and 2g of swap space which appears |
14 |
> > > not to be used. I am using uvesafb for the console, so I get 64x160 |
15 |
> > > screens. |
16 |
> > |
17 |
> > Sounds similar to my laptop, except I run KDE and got 16g of swap (for |
18 |
> > hibernate) |
19 |
> > |
20 |
> > > The first problem is that if I don't press any keystrokes for several |
21 |
> > > minutes and then want to move to another vc, it takes about 3 or 4 |
22 |
> > > seconds after the alt-left arrow or alt-right arrow command to take |
23 |
> > > effect. Even within the same vt, if I don't do anything for several |
24 |
> > > minutes, it takes several seconds till the keystroke echoes and |
25 |
> > > something happens. Once I have done this, things act normally, but its |
26 |
> > > kind of annoying. |
27 |
> > |
28 |
> > Sounds like a powersave setting. I used to get the same on my old laptop |
29 |
> > with spinning rust. SSDs tend to "spin-up" a lot quicker. |
30 |
> > |
31 |
> > > Also, my load average seems to always be >1. I have |
32 |
> > > looked at top and things seem to be OK, except that my cpu usage is like |
33 |
> > > this: |
34 |
> > > Tasks: 934 total, 2 running, 931 sleeping, 0 stopped, 1 zombie |
35 |
> > > %Cpu(s): 12.5 us, 1.2 sy, 0.0 ni, 86.0 id, 0.2 wa, 0.0 hi, 0.0 si, |
36 |
> > > 0.0 st |
37 |
> > > KiB Mem: 16450248 total, 9678656 used, 6771592 free, 1084088 buffers |
38 |
> > > KiB Swap: 2097148 total, 4 used, 2097144 free. 1147688 cached |
39 |
> > > Mem |
40 |
> > > |
41 |
> > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ |
42 |
> > > COMMAND |
43 |
> > > |
44 |
> > > 9969 root 20 0 708 16 0 R 100.0 0.0 1549:10 v86d |
45 |
> > > |
46 |
> > > 579 root 30 10 0 0 0 S 9.1 0.0 16:09.93 |
47 |
> > > speakup |
48 |
> > > |
49 |
> > > 11789 root 20 0 22524 2388 1116 R 0.7 0.0 0:00.03 top |
50 |
> > > |
51 |
> > > 7 root 0 -20 0 0 0 S 0.3 0.0 0:10.41 |
52 |
> > > |
53 |
> > > kworker/u:0H |
54 |
> > > |
55 |
> > > and onward ... |
56 |
> > > This is an awful lot of tasks, I have never seen so many! |
57 |
> > |
58 |
> > That is a lot, I am currently running KDE, firefox and a citrix remote |
59 |
> > desktop thing. (oh, and skype and kopete and a few other items) |
60 |
> > KDE is installed with semantic-desktop, but the nepomuk stuff is disabled |
61 |
> > in system-settings. |
62 |
> > I have 200 tasks (yes, nice round figure) |
63 |
> > |
64 |
> > > Anyone have any ideas? Thanks much. |
65 |
> > |
66 |
> > For the amount of tasks, check that you are not starting too many unneeded |
67 |
> > services. For the load-average of 1, shouldn't be too much of an issue, |
68 |
> > had |
69 |
> > similar in the past with a lot of stuff running and slow disks. |
70 |
> > |
71 |
> > For the freezing, I would suggest checking all the powersave options, |
72 |
> > especially the ones for the harddrives. |
73 |
> > Is there anything in the logs when this happens? Eg. check the logs right |
74 |
> > after the system becomes responsible again, maybe there is a hint there |
75 |
> > what is causing this. |
76 |
> |
77 |
> Unless systemd is setting some powersave options, I certainly never set |
78 |
> anything like that, this is a desktop machine, not even a laptop. Next |
79 |
> time this happens I will check the logs. Does systemd set some |
80 |
> powersave options by default? |
81 |
|
82 |
I do not know that for sure, best wait for more knowledgable systemd users to |
83 |
answer that. If it doesn't, then systemd itself is causing more freezes (as |
84 |
per your experience) then openrc. |
85 |
|
86 |
I would guess it does or at least with the default configuration. What you |
87 |
describe makes me think the disks are switched to powersave sooner with |
88 |
systemd. |
89 |
Can you provide the output of the following command: |
90 |
# hdparm -B /dev/sda |
91 |
to get the APM settings of the disk. (If you have multiple disks, please run |
92 |
it for the others as well. |
93 |
|
94 |
Question for others as well, how do you get the current setting for the |
95 |
spindown timeout set with " hdparm -S <value> <device> "? |
96 |
I couldn't find it. |
97 |
|
98 |
I am happy with openrc and have no intention on switching to systemd as I |
99 |
haven't heard of a single feature that would actually make my life easier. |
100 |
|
101 |
-- |
102 |
Joost |