Gentoo Archives: gentoo-user

From: lee <lee@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] xen on new install reboots by itself
Date: Fri, 01 May 2015 11:28:46
Message-Id: 87mw1o4nv5.fsf@heimdali.yagibdah.de
In Reply to: Re: [gentoo-user] xen on new install reboots by itself by "J. Roeleveld"
1 "J. Roeleveld" <joost@××××××××.org> writes:
2
3 > On Friday, April 24, 2015 10:24:06 PM lee wrote:
4 >> "J. Roeleveld" <joost@××××××××.org> writes:
5 >> > On Thursday, April 23, 2015 11:02:24 PM lee wrote:
6 >> >> hydra <hydrapolic@×××××.com> writes:
7 >> >> > You mean the documentation at Gentoo about Xen sucks or the upstream
8 >> >> >
9 >> >> > documentation? What information are you missing from there? Maybe we
10 >> >> > can
11 >> >> > add the missing pieces for Xen being more accessible and easier to
12 >> >> > use,
13 >> >> > what do you think? :)
14 >> >>
15 >> >> I mean the documentation they have on their wiki. It's a confusing mess
16 >> >> referring to various version with which things are being done
17 >> >> differently.
18 >> >
19 >> > The problem here is the different "implementations" that exist:
20 >> > - Xen (install and configure yourself, toolset: 'xl' , 'xm' is deprecated)
21 >> > - Citrix and XCP (pre-configured, install on dedicated server, toolset:
22 >> > 'xcp') - OVM (Oracle's implementation, not sure which toolset they use)
23 >>
24 >> Maybe, maybe not; the documentation is so confusing that I can't really
25 >> tell what it is talking about.
26 >
27 > Where did you look?
28
29 Everywhere I could find. The xen wiki is particularly messy.
30
31 >> >> Could you add missing pieces about why power management --- as in
32 >> >> frequency scaling --- doesn't work
33 >> >
34 >> > What doesn't work with this?
35 >> > The following seems quite detailed:
36 >> > http://wiki.xen.org/wiki/Xen_power_management
37 >>
38 >> There was some command to query what frequencies the CPUs are running
39 >> on, and it didn't give any output. Documentation seems to claim that
40 >> xen can do power management automagically, yet there was no way to
41 >> verify what it actually does.
42 >
43 > It works here:
44 > # xenpm get-cpufreq-para all
45 > cpu id : 0
46 > affected_cpus : 0
47 > cpuinfo frequency : max [3101000] min [1600000] cur [1600000]
48 > scaling_driver : acpi-cpufreq
49 > scaling_avail_gov : userspace performance powersave ondemand
50 > current_governor : ondemand
51 > ondemand specific :
52 > sampling_rate : max [10000000] min [10000] cur [20000]
53 > up_threshold : 80
54 > scaling_avail_freq : 3101000 3100000 2900000 2700000 2500000 2300000 2100000
55 > 1900000 1700000 *1600000
56 > scaling frequency : max [3101000] min [1600000] cur [1600000]
57 > turbo mode : enabled
58 >
59 > <snipped identical results for other CPU-cores>
60 >
61 > Looks like it's actually working and I never configured this.
62
63 It didn't work for me.
64
65 >> > And the commands listed there (for the hypervisor based option) work on my
66 >> > server.
67 >> >
68 >> >> and what to do about keeping the time
69 >> >> in sync between all VMs when you find out that this doesn't work as the
70 >> >> documentation would have you think it does?
71 >> >
72 >> > In what way doesn't it work?
73 >> > The clocks are all synchronized and I don't need to use anything like
74 >> > 'ntpd'
75 >> The clocks were off by quite a bit after a while, and I had to use ntp
76 >> to get them in sync. Some documentation claims you don't need ntp or
77 >> anything; some other documentation apparently tries to explain that
78 >> keeping the clocks in sync cannot work unless the CPU(s) have some
79 >> features having to do with clock consistency while they are in sleep
80 >> states, and yet other documentation seems to say that using ntp cannot
81 >> work because xen screws it off. In the end, it was recommended to me to
82 >> use ntp, which I found to work. There was no way to figure out what xen
83 >> was actually doing or not doing towards this, and nobody seemed to know
84 >> how to keep the clocks in sync, other than using ntp, which appears to
85 >> be deprecated.
86 >
87 > Which version did you try?
88 > I remember having had clock-issues requiring ntp when I first started using Xen
89 > over 10 years ago.
90
91 The version in Debian --- I don't remember which one it was. Debian was
92 the only distribution I could get it to work with at all, and the VMs
93 also were Debian because there isn't a good way to install an operating
94 system in a VM.
95
96
97 --
98 Again we must be afraid of speaking of daemons for fear that daemons
99 might swallow us. Finally, this fear has become reasonable.