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