Gentoo Archives: gentoo-user

From: Lincoln Baxter <lincoln.a.baxter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: events/0 at 100% when running rsync
Date: Sun, 01 Jan 2006 22:53:23
Message-Id: 7d4438950601011445k74a384a5rea93ffb8a09ad00a@mail.gmail.com
In Reply to: [gentoo-user] events/0 at 100% when running rsync by Lincoln Baxter
1 On 1/1/06, Lincoln Baxter <lincoln.a.baxter@×××××.com> wrote:
2 [snip]
3 > I resently upgraded to an Athlon X2 dual core processor and mobo.
4 >
5 > Recompile Kernel (gentoo-sources) for SMP etc, and I have both an
6 > events/0 and an events/1 process running.
7 >
8 > When I rsync one file system to another, the events/0 process goes
9 > 100% cpu bound on cpu0. And the system becomes unusable, until the
10 > rsync finishes.
11 >
12 > I have been googling for events/0 and rsync and %100 CPU and have
13 > found very few pointers to what might be up.
14 >
15 [snip]
16
17 It appears that events/N is the kernel scheduler process for each CPUs run queue
18
19 On the suspicion that it was being called too frequently in this
20 scenario, I changed my kernel config from
21
22 CONFIG_HZ_1000=y
23 CONFIG_HZ=1000
24
25 to:
26
27 CONFIG_HZ_250=y
28 CONFIG_HZ=250
29
30 The problem seems to be completely solved. I am thinking that
31 rescheduling processes 1000 times a second per processor was way too
32 excessive. (Kernel is configured for low latency).
33
34 Anyone care to confirm that this would account for the problem being
35 resolved? (or should I look at something else I changed -- other
36 things were changed but I doubt that they would account for this).
37
38 I did change CONFIG_IO_SCHED_* to M from Y.
39
40 Question: could this have effected this? How does one determine which
41 IO_SCHED algorythm is used?
42
43 FYI... Here is the full diff of what I changed:
44
45 # diff -c .config .config.060101-1
46 *** .config Sun Jan 1 15:46:54 2006
47 --- .config.060101-1 Sun Jan 1 15:38:33 2006
48 ***************
49 *** 1,7 ****
50 #
51 # Automatically generated make config: don't edit
52 # Linux kernel version: 2.6.14-gentoo-r5
53 ! # Sun Jan 1 15:46:54 2006
54 #
55 CONFIG_X86=y
56 CONFIG_SEMAPHORE_SLEEPERS=y
57 --- 1,7 ----
58 #
59 # Automatically generated make config: don't edit
60 # Linux kernel version: 2.6.14-gentoo-r5
61 ! # Sun Jan 1 01:33:48 2006
62 #
63 CONFIG_X86=y
64 CONFIG_SEMAPHORE_SLEEPERS=y
65 ***************
66 *** 113,119 ****
67 CONFIG_HPET_TIMER=y
68 CONFIG_HPET_EMULATE_RTC=y
69 CONFIG_SMP=y
70 ! CONFIG_NR_CPUS=2
71 # CONFIG_SCHED_SMT is not set
72 # CONFIG_PREEMPT_NONE is not set
73 # CONFIG_PREEMPT_VOLUNTARY is not set
74 --- 113,119 ----
75 CONFIG_HPET_TIMER=y
76 CONFIG_HPET_EMULATE_RTC=y
77 CONFIG_SMP=y
78 ! CONFIG_NR_CPUS=4
79 # CONFIG_SCHED_SMT is not set
80 # CONFIG_PREEMPT_NONE is not set
81 # CONFIG_PREEMPT_VOLUNTARY is not set
82 ***************
83 *** 137,143 ****
84 #
85 # CONFIG_EDD is not set
86 # CONFIG_DELL_RBU is not set
87 ! # CONFIG_DCDBAS is not set
88 # CONFIG_NOHIGHMEM is not set
89 CONFIG_HIGHMEM4G=y
90 # CONFIG_HIGHMEM64G is not set
91 --- 137,143 ----
92 #
93 # CONFIG_EDD is not set
94 # CONFIG_DELL_RBU is not set
95 ! CONFIG_DCDBAS=m
96 # CONFIG_NOHIGHMEM is not set
97 CONFIG_HIGHMEM4G=y
98 # CONFIG_HIGHMEM64G is not set
99 ***************
100 *** 157,165 ****
101 # CONFIG_REGPARM is not set
102 CONFIG_SECCOMP=y
103 # CONFIG_HZ_100 is not set
104 ! CONFIG_HZ_250=y
105 ! # CONFIG_HZ_1000 is not set
106 ! CONFIG_HZ=250
107 CONFIG_PHYSICAL_START=0x100000
108 # CONFIG_KEXEC is not set
109
110 --- 157,165 ----
111 # CONFIG_REGPARM is not set
112 CONFIG_SECCOMP=y
113 # CONFIG_HZ_100 is not set
114 ! # CONFIG_HZ_250 is not set
115 ! CONFIG_HZ_1000=y
116 ! CONFIG_HZ=1000
117 CONFIG_PHYSICAL_START=0x100000
118 # CONFIG_KEXEC is not set
119
120 ***************
121 *** 265,271 ****
122 #
123 # PCI Hotplug Support
124 #
125 ! # CONFIG_HOTPLUG_PCI is not set
126
127 #
128 # Executable file formats
129 --- 265,278 ----
130 #
131 # PCI Hotplug Support
132 #
133 ! CONFIG_HOTPLUG_PCI=m
134 ! # CONFIG_HOTPLUG_PCI_FAKE is not set
135 ! # CONFIG_HOTPLUG_PCI_COMPAQ is not set
136 ! # CONFIG_HOTPLUG_PCI_IBM is not set
137 ! # CONFIG_HOTPLUG_PCI_ACPI is not set
138 ! # CONFIG_HOTPLUG_PCI_CPCI is not set
139 ! CONFIG_HOTPLUG_PCI_SHPC=m
140 ! # CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set
141
142 #
143 # Executable file formats
144 ***************
145 *** 492,500 ****
146 # IO Schedulers
147 #
148 CONFIG_IOSCHED_NOOP=y
149 ! CONFIG_IOSCHED_AS=m
150 ! CONFIG_IOSCHED_DEADLINE=m
151 ! CONFIG_IOSCHED_CFQ=m
152 CONFIG_ATA_OVER_ETH=m
153
154 #
155 --- 499,507 ----
156 # IO Schedulers
157 #
158 CONFIG_IOSCHED_NOOP=y
159 ! CONFIG_IOSCHED_AS=y
160 ! CONFIG_IOSCHED_DEADLINE=y
161 ! CONFIG_IOSCHED_CFQ=y
162 CONFIG_ATA_OVER_ETH=m
163
164 #
165 ***************
166 *** 940,946 ****
167 # Watchdog Cards
168 #
169 # CONFIG_WATCHDOG is not set
170 ! CONFIG_HW_RANDOM=y
171 # CONFIG_NVRAM is not set
172 CONFIG_RTC=y
173 # CONFIG_DTLK is not set
174 --- 947,953 ----
175 # Watchdog Cards
176 #
177 # CONFIG_WATCHDOG is not set
178 ! CONFIG_HW_RANDOM=m
179 # CONFIG_NVRAM is not set
180 CONFIG_RTC=y
181 # CONFIG_DTLK is not set
182 ***************
183 *** 1099,1105 ****
184 #
185 # Multimedia devices
186 #
187 ! # CONFIG_VIDEO_DEV is not set
188
189 #
190 # Digital Video Broadcasting Devices
191 --- 1106,1156 ----
192 #
193 # Multimedia devices
194 #
195 ! CONFIG_VIDEO_DEV=y
196 !
197 ! #
198 ! # Video For Linux
199 ! #
200 !
201 ! #
202 ! # Video Adapters
203 ! #
204 ! # CONFIG_VIDEO_BT848 is not set
205 ! # CONFIG_VIDEO_PMS is not set
206 ! # CONFIG_VIDEO_BWQCAM is not set
207 ! # CONFIG_VIDEO_CQCAM is not set
208 ! # CONFIG_VIDEO_W9966 is not set
209 ! # CONFIG_VIDEO_CPIA is not set
210 ! # CONFIG_VIDEO_SAA5246A is not set
211 ! # CONFIG_VIDEO_SAA5249 is not set
212 ! # CONFIG_TUNER_3036 is not set
213 ! # CONFIG_VIDEO_STRADIS is not set
214 ! # CONFIG_VIDEO_ZORAN is not set
215 ! # CONFIG_VIDEO_SAA7134 is not set
216 ! # CONFIG_VIDEO_MXB is not set
217 ! # CONFIG_VIDEO_DPC is not set
218 ! # CONFIG_VIDEO_HEXIUM_ORION is not set
219 ! # CONFIG_VIDEO_HEXIUM_GEMINI is not set
220 ! # CONFIG_VIDEO_CX88 is not set
221 ! # CONFIG_VIDEO_OVCAMCHIP is not set
222 !
223 ! #
224 ! # Radio Adapters
225 ! #
226 ! # CONFIG_RADIO_CADET is not set
227 ! # CONFIG_RADIO_RTRACK is not set
228 ! # CONFIG_RADIO_RTRACK2 is not set
229 ! # CONFIG_RADIO_AZTECH is not set
230 ! # CONFIG_RADIO_GEMTEK is not set
231 ! # CONFIG_RADIO_GEMTEK_PCI is not set
232 ! # CONFIG_RADIO_MAXIRADIO is not set
233 ! # CONFIG_RADIO_MAESTRO is not set
234 ! # CONFIG_RADIO_SF16FMI is not set
235 ! # CONFIG_RADIO_SF16FMR2 is not set
236 ! # CONFIG_RADIO_TERRATEC is not set
237 ! # CONFIG_RADIO_TRUST is not set
238 ! # CONFIG_RADIO_TYPHOON is not set
239 ! # CONFIG_RADIO_ZOLTRIX is not set
240
241 #
242 # Digital Video Broadcasting Devices
243 ***************
244 *** 1211,1220 ****
245 --- 1262,1274 ----
246 CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
247 # CONFIG_SND_VERBOSE_PRINTK is not set
248 # CONFIG_SND_DEBUG is not set
249 + CONFIG_SND_GENERIC_DRIVER=y
250
251 #
252 # Generic devices
253 #
254 + CONFIG_SND_MPU401_UART=m
255 + CONFIG_SND_OPL3_LIB=m
256 # CONFIG_SND_DUMMY is not set
257 # CONFIG_SND_VIRMIDI is not set
258 # CONFIG_SND_MTPAV is not set
259 ***************
260 *** 1242,1248 ****
261 # CONFIG_SND_OPTI93X is not set
262 # CONFIG_SND_SB8 is not set
263 # CONFIG_SND_SB16 is not set
264 ! # CONFIG_SND_SBAWE is not set
265 # CONFIG_SND_WAVEFRONT is not set
266 # CONFIG_SND_ALS100 is not set
267 # CONFIG_SND_AZT2320 is not set
268 --- 1296,1303 ----
269 # CONFIG_SND_OPTI93X is not set
270 # CONFIG_SND_SB8 is not set
271 # CONFIG_SND_SB16 is not set
272 ! CONFIG_SND_SBAWE=m
273 ! CONFIG_SND_SB16_CSP=y
274 # CONFIG_SND_WAVEFRONT is not set
275 # CONFIG_SND_ALS100 is not set
276 # CONFIG_SND_AZT2320 is not set
277 ***************
278 *** 1269,1275 ****
279 # CONFIG_SND_CS4281 is not set
280 CONFIG_SND_EMU10K1=m
281 # CONFIG_SND_EMU10K1X is not set
282 ! # CONFIG_SND_CA0106 is not set
283 # CONFIG_SND_KORG1212 is not set
284 # CONFIG_SND_MIXART is not set
285 # CONFIG_SND_NM256 is not set
286 --- 1324,1330 ----
287 # CONFIG_SND_CS4281 is not set
288 CONFIG_SND_EMU10K1=m
289 # CONFIG_SND_EMU10K1X is not set
290 ! CONFIG_SND_CA0106=m
291 # CONFIG_SND_KORG1212 is not set
292 # CONFIG_SND_MIXART is not set
293 # CONFIG_SND_NM256 is not set
294 ***************
295 *** 1394,1403 ****
296 # USB Multimedia devices
297 #
298 # CONFIG_USB_DABUSB is not set
299 !
300 ! #
301 ! # Video4Linux support is needed for USB Multimedia device support
302 ! #
303
304 #
305 # USB Network Adapters
306 --- 1449,1463 ----
307 # USB Multimedia devices
308 #
309 # CONFIG_USB_DABUSB is not set
310 ! # CONFIG_USB_VICAM is not set
311 ! # CONFIG_USB_DSBR is not set
312 ! # CONFIG_USB_IBMCAM is not set
313 ! # CONFIG_USB_KONICAWC is not set
314 ! # CONFIG_USB_OV511 is not set
315 ! # CONFIG_USB_SE401 is not set
316 ! # CONFIG_USB_SN9C102 is not set
317 ! # CONFIG_USB_STV680 is not set
318 ! # CONFIG_USB_PWC is not set
319
320 #
321 # USB Network Adapters
322
323 --
324 gentoo-user@g.o mailing list