Gentoo Archives: gentoo-server

From: Konstantin <konstantin@××××××××.com>
To: Pandu Poluan <gentoo-server@l.g.o>
Subject: Re: [gentoo-server] DomU freezes in the middle of booting [SOLVED]
Date: Thu, 12 Apr 2012 14:45:53
Message-Id: 886206507.20120412174521@astafjev.com
In Reply to: Re: [gentoo-server] DomU freezes in the middle of booting by Pandu Poluan
1 Hello Pandu,
2
3 Thursday, April 12, 2012, 17:30:08, Pandu Poluan wrote:
4 > On Apr 12, 2012 8:51 PM, "Konstantin" <konstantin@××××××××.com> wrote:
5 >> Thursday, April 12, 2012, 15:52:50, Konstantin wrote:
6 >> > Thursday, April 12, 2012, 15:29:42, Pandu Poluan wrote:
7 >> >>> Thursday, April 12, 2012, 13:09:15, Pandu Poluan wrote:
8 >> >>> > Have you tried:
9 >> >>> > root = '/dev/xvda1'
10 >> >>> > That is, without 'ro'?
11 >> >>> > Rgds,
12 >> >>>
13 >> >>> Thank you. Already tried without any difference.
14 >> >>>
15 >> >> It's a DomU, right? Why do you have Dom0 option enabled?
16 >>
17 >> > You mean this part of .config file:
18 >> > CONFIG_XEN_DOM0=y
19 >> > CONFIG_XEN_PRIVILEGED_GUEST=y
20 >> > CONFIG_XEN_PVHVM=y
21 >> > CONFIG_XEN_MAX_DOMAIN_MEMORY=128
22 >> > CONFIG_XEN_SAVE_RESTORE=y
23 >>
24 >> > I just could not find how to disable this code in menuconfig. :)
25 >>
26 >> If I'm trying to turn it off, but then other frontend options
27 >> disappear.
28 >>
29 >> Latest update: When I saw
30 >> ---------------------
31 >> * Starting local
32 >> [ ok ]
33 >> ---------------------
34 >>
35 >> I've noticed that domU actually working. I've tried to change inittab
36 >> remotely via ssh to something like
37 >>
38 >> # TERMINALS
39 >> x1:12345:respawn:/sbin/agetty 38400 console linux
40 >> #c1:12345:respawn:/sbin/agetty 38400 tty1 linux
41 >> #c2:2345:respawn:/sbin/agetty 38400 tty2 linux
42 >> #c3:2345:respawn:/sbin/agetty 38400 tty3 linux
43 >> #c4:2345:respawn:/sbin/agetty 38400 tty4 linux
44 >> #c5:2345:respawn:/sbin/agetty 38400 tty5 linux
45 >> #c6:2345:respawn:/sbin/agetty 38400 tty6 linux
46 >>
47 >> Then reinitialized init by
48 >> localhost ~ # init q
49 >>
50 >> and console in Dom0 become interactive again. So that freezing after
51 >> "Starting local" was the console problem anyway.
52 >>
53 >> Right now only one left with that random start. DomU starts
54 >> successfully about one time per three unsuccessful.
55 >>
56 >> I've noticed that it gets stuck when kernel outputs this text:
57 >>
58 >> -------------------------------------------------------------
59 >> Switching to clocksource xen
60 >> pnp: PnP ACPI: disabled
61 >> CE: xen increased min_delta_ns to 150000 nsec
62 >> CE: xen increased min_delta_ns to 225000 nsec
63 >> CE: xen increased min_delta_ns to 337500 nsec
64 >> CE: xen increased min_delta_ns to 506250 nsec
65 >> CE: xen increased min_delta_ns to 759375 nsec
66 >> CE: xen increased min_delta_ns to 1139062 nsec
67 >> CE: xen increased min_delta_ns to 1708593 nsec
68 >> CE: xen increased min_delta_ns to 2562889 nsec
69 >> CE: xen increased min_delta_ns to 3844333 nsec
70 >> CE: xen increased min_delta_ns to 5766499 nsec
71 >> CE: xen increased min_delta_ns to 8649748 nsec
72 >> CE: xen increased min_delta_ns to 10000000 nsec
73 >> CE: Reprogramming failure. Giving up
74 >> CE: Reprogramming failure. Giving up
75 >> hrtimer: interrupt took 5171 ns
76 >> TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
77 >> TCP: Hash tables configured (established 131072 bind 65536)
78 >> TCP reno registered
79 >> UDP hash table entries: 512 (order: 2, 16384 bytes)
80 >> UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
81 >> CE: xen increased min_delta_ns to 150000 nsec
82 >> CE: xen increased min_delta_ns to 225000 nsec
83 >> CE: xen increased min_delta_ns to 337500 nsec
84 >> CE: xen increased min_delta_ns to 506250 nsec
85 >> CE: xen increased min_delta_ns to 759375 nsec
86 >> CE: xen increased min_delta_ns to 1139062 nsec
87 >> CE: xen increased min_delta_ns to 1708593 nsec
88 >> CE: xen increased min_delta_ns to 2562889 nsec
89 >> CE: xen increased min_delta_ns to 3844333 nsec
90 >> CE: xen increased min_delta_ns to 5766499 nsec
91 >> CE: xen increased min_delta_ns to 8649748 nsec
92 >> CE: xen increased min_delta_ns to 10000000 nsec
93 >> CE: Reprogramming failure. Giving up
94 >> CE: Reprogramming failure. Giving up
95 >> platform rtc_cmos: registered platform RTC device (no PNP device found)
96 >> -------------------------------------------------------------
97 >>
98 >> And when kernel not writing any "CE: " messages domU boots
99 >> successfully:
100 >>
101 >> --------------------------------
102 >> PCI: System does not support PCI
103 >> PCI: System does not support PCI
104 >> Switching to clocksource xen
105 >> pnp: PnP ACPI: disabled
106 >> --------------------------------
107 >>
108 >> Trying to figure out what to do next.
109
110 > Try using "tickless". I forgot where exactly, but IIRC on the same page where you set the CPU type.
111 > Rgds,
112
113 If you mean Tickless System (Dynamic Ticks) as NO_HZ=y so it already
114 enabled for me.
115
116 I figured out how to solve my problem with DomU. I've changed tsc_mode
117 to something different from 0 or 4 and it seems started to work for
118 me.
119
120 Here is short tsc_mode option description from sample VM config file:
121
122 #----------------------------------------------------------------------------
123 # tsc_mode : TSC mode (0=default, 1=native TSC, 2=never emulate, 3=pvrdtscp)
124 # emulate TSC provides synced TSC for all vcpus, but lose perfomrance.
125 # native TSC leverages hardware's TSC(no perf loss), but vcpu's TSC may lose
126 # sync due to hardware's unreliable/unsynced TSC between CPUs.
127 # default intelligently uses native TSC on machines where it is safe, but
128 # switches to emulated if necessary after save/restore/migration
129 # pvrdtscp is for intelligent apps that use special Xen-only paravirtualized
130 # cpuid instructions to obtain offset/scaling/migration info and maximize
131 # performance within pools of machines that support the rdtscp instruction
132 tsc_mode=1
133
134 BTW, does anybody has NTP server on a virtual machine? ;)
135
136 --
137 Konstantin

Replies

Subject Author
Re: [gentoo-server] DomU freezes in the middle of booting [SOLVED] Pandu Poluan <pandu@××××××.info>