search for: system_tim

Displaying 20 results from an estimated 67 matches for "system_tim".

Did you mean: system_time
2009 Jul 10
2
Problem installing system_timer in windows
Hi, I recently started working on an existing Ruby On Rails application which production environment is linux. However we are trying to create a dev. platform with Eclipse in Windows and everything was working fine until one of our classes was trying to import system_timer. The initial error I got is: no such file to load -- system_timer Application Trace: c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' c:/Ruby/lib/ruby/gems/1.8/gem...
2008 Aug 06
10
[BUG 1282] time jump on live migrate root cause & proposed fixes
...the guest can jump - after a live migrate, the guest "forgets" to wake up processes - after a domU save, dom0 reboot and domU restore, the time is correct but processes are not woken up from sys_nanosleep The problem seems to stem from the fact that domU uses the hypervisor''s system_time, which is the time since hypervisor system bootup in nanoseconds, as its base for timekeeping. This works fine as long as the guest stays on the same hypervisor, but if the guest is migrated to a hypervisor with a different uptime, problems ensue. Specifically, if the guest is migrated to a host...
2017 Mar 21
0
[PATCH] p2v: Calculate offset of the Real Time Clock from UTC.
...ng ahead of UTC. + * + * In the error case, C<rtcE<gt>offset> is updated with 0 and + * C<rtcE<gt>basis> is set to C<BASIS_UNKNOWN>. + */ +void +get_rtc_config (struct rtc_config *rtc) +{ + int fd; + struct rtc_time rtm; + struct tm tm; + time_t rtc_time; + time_t system_time; + double rf; + + rtc->basis = BASIS_UNKNOWN; + rtc->offset = 0; + + fd = open ("/dev/rtc", O_RDONLY); + if (fd == -1) { + perror ("/dev/rtc"); + return; + } + + if (ioctl (fd, RTC_RD_TIME, &rtm) == -1) { + perror ("ioctl: RTC_RD_TIME"); +...
2011 Aug 26
1
gem installation issues
...the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir ..... --without-exsltlib extconf.rb:57:in ``'': No such file or directory - xml2-config --cflags (Errno::ENOENT) from extconf.rb:57 3) gem install system_timer Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing system_timer: ERROR: Failed to build gem native extension. C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe extconf.rb creating Makefile make gcc -I. -I/C/Rai...
2017 Mar 21
2
[PATCH] p2v: Calculate offset of the Real Time Clock from UTC.
Unlike the <cpu> node (see the other thread on the libguestfs ML), reading the Real Time Clock doesn't require libvirt and does work :-) For reference, read: https://libvirt.org/formatdomain.html#elementsTime https://en.wikipedia.org/wiki/Time_zone To test this you can run virt-p2v under qemu with a RTC offset: make -C p2v \ run-virt-p2v-in-a-vm \
2013 Jun 04
13
[PATCH] x86/vtsc: update vcpu_time after hvm_set_guest_time
...pu.stime_offset, which is used in the vcpu time structure to calculate the tsc_timestamp, so after updating stime_offset we need to propagate the change to vcpu_time in order for the guest to get the right time if using the PV clock. This was not done correctly, since in context_switch update_vcpu_system_time was called before vmx_do_resume, which caused the vcpu_info time structure to be updated with the wrong values. This patch fixes this by calling update_vcpu_system_time after the call to hvm_set_guest_time has happened. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Cc: Keir Fraser &...
2009 Sep 04
0
Mongrel Timeout for System Calls
...to do anything as the process still took 120-130 seconds to complete. After digging around a bit, I discovered this writeup about timeout and system calls (http://adamblog.heroku.com/past/2008/6/17/battling_wedged_mongrels_with_a/). I immediately installed SystemTimer (http://ph7spot.com/articles/system_timer) and tried again: begin require ''system_timer'' MyTimer = SystemTimer rescue LoadError require ''timeout'' MyTimer = Timeout end def invoke(rfc) MyTimer.timeout_after(20.seconds) do rfc.invoke end rescue Timeout::Error raise Timeo...
2013 Apr 19
1
problem when get the vm cpu stat
Hi all, I try to get vm cpu stat by function "virDomainGetCPUStats", when the vm Cpu usage is 100%, I can see from the vm shell by "top", when the info Get by the "virDomainGetCPUStats" show only the "cpu_time" increased, "user_time" and "system_time" was not changed at all. Is that correct ? How can I get the vm cpu usage? nparams = virDomainGetCPUStats(domain, NULL, 0, -1, 1, 0); virDomainGetCPUStats(domain, params, nparams, -1, 1, 0); Thanks, Kevin. -------------- next part -------------- An HTML attachment was scrubbed... URL: <...
2012 Aug 17
1
getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
...ibvirtError Traceback (most recent call last) <ipython-input-23-9317cf967f6d> in <module>() ----> 1 dom.getCPUStats(True, 0) /usr/lib/python2.7/site-packages/libvirt.pyc in getCPUStats(self, total, flags) 1733 [{cpu_time:xxx, user_time:xxx, system_time:xxx}] """ 1734 ret = libvirtmod.virDomainGetCPUStats(self._o, total, flags) -> 1735 if ret is None: raise libvirtError ('virDomainGetCPUStats() failed', dom=self) 1736 return ret 1737 libvirtError: Requested operation is not valid: cgroup...
2008 Jun 03
10
[PATCH 0/5] paravirt clock source patches, #4
paravirt clock source patches, next round. There is now a pvclock-abi.h file with the structs and some longish comments in it and everybody is switched over to use the stuff in there. cheers, Gerd
2008 Jun 03
10
[PATCH 0/5] paravirt clock source patches, #4
paravirt clock source patches, next round. There is now a pvclock-abi.h file with the structs and some longish comments in it and everybody is switched over to use the stuff in there. cheers, Gerd
2008 May 08
4
[PATCH 0/4] paravirt clock series.
Respin of the paravirt clock patch series. On the host side the kvm paravirt clock is made compatible with the xen clock. On the guest side some xen code has been factored out into a separate source file shared by both kvm and xen clock implementations. This time it should work ok for kvm smp guests ;) cheers, Gerd
2008 May 08
4
[PATCH 0/4] paravirt clock series.
Respin of the paravirt clock patch series. On the host side the kvm paravirt clock is made compatible with the xen clock. On the guest side some xen code has been factored out into a separate source file shared by both kvm and xen clock implementations. This time it should work ok for kvm smp guests ;) cheers, Gerd
2008 May 16
5
[PATCH 0/4] paravirt clock source patches, #3
paravirt clock source patches, next round, with a bunch of changes in the host code according to Avi's review comments and some minor code tweaks. cheers, Gerd
2008 May 16
5
[PATCH 0/4] paravirt clock source patches, #3
paravirt clock source patches, next round, with a bunch of changes in the host code according to Avi's review comments and some minor code tweaks. cheers, Gerd
2008 Jun 03
6
[PATCH 0/5] paravirt clock source patches, #5
paravirt clock source patches, next round. There is now a pvclock-abi.h file with the structs and some longish comments in it and everybody is switched over to use the stuff in there. Some minor tweaks after super-fast review by Jeremy. The queue is on top of the kvm git tree. The first two patches should have no kvm dependencies and should apply to linus tree just fine. cheers, Gerd
2008 Jun 03
6
[PATCH 0/5] paravirt clock source patches, #5
paravirt clock source patches, next round. There is now a pvclock-abi.h file with the structs and some longish comments in it and everybody is switched over to use the stuff in there. Some minor tweaks after super-fast review by Jeremy. The queue is on top of the kvm git tree. The first two patches should have no kvm dependencies and should apply to linus tree just fine. cheers, Gerd
2014 Mar 12
4
Problem in getting memory statistics
Hello, I need to get how much memory is used by a guest system, in order to implement some monitoring function which tells me if the system is overstressed. I am currently using java apis and the binding which was suggested to me was Domain.memoryStats(); This is a binding to int virDomainMemoryStats (virDomainPtr<http://libvirt.org/html/libvirt-libvirt.html#virDomainPtr>dom,
2007 Mar 26
12
System time monotonicity
...ems it might be correlated to when a VCPU is switched across real CPUs but I haven''t conclusively proved that. But e.g.: { old = { time = { version = 0x4ec pad0 = 0xe8e0 tsc_timestamp = 0x22cc8398b7194 system_time = 0xe8e0345d8805 tsc_to_system_mul = 0xd62c0083 tsc_shift = ''\377'' pad1 = [ ''\002'', ''\027'', ''\365'' ] } result = 0xe8e0484568fa tsc = 0x22cc869...
2007 Apr 23
0
request logging: around_filters can't see error responses!
Hello, I want to emit a structured log entry (in YAML) for every request that hits my Rails app. For example, an entry in this log would look something like: --- SYSTEM_TIME: 0.0166666666666667 USER_TIME: 0.0999999999999996 DB_TIME: 0.00247621536254883 REAL_TIME: 0.091976 STATUS_CODE: 500 SESSION_ID: 64ad46a8841c66bbf64e93335cedc50d REQUEST_ID: 32d6a42f-da58-43e2-ab27-09d3e2a775cb RESPONSE_BODY_SIZE: 7001 REMOTE_IP: 127.0.1.1 TIMESTAMP: 2007-04-23 12:05:41.555780 -07:...