13 Aug 2010 09:15
UML time dilation
Vimal <j.vimal <at> gmail.com>
2010-08-13 07:15:55 GMT
2010-08-13 07:15:55 GMT
Hi, I wish to make time appear slower to applications running inside UML. I came across this post: http://www.mail-archive.com/user-mode-linux-user <at> lists.sourceforge.net/msg03984.html But it looks like UML now uses hrtimers (setitimer, getitimer). I have configured a tickless kernel. I tried dilating the time by library interposition and LD_PRELOADing a module that modifies the following system calls: - getitimer (gets the stored timer, returns T / dilation) - setitimer (sets a new timer for T * dilation) - nanosleep (sleeps for T * dilation) - gtod: gettimeofday (returns T / dilation) But some applications still have the correct knowledge of time. Applications that use gtod still know the "real" time (though I modified gtod), though "sleep 1" (which uses nanosleep), sleeps for 2 seconds. Am I doing something wrong? Thanks, -- -- Vimal ------------------------------------------------------------------------------ This SF.net email is sponsored by(Continue reading)
I'm currently running three UML virtual machines on an server using
Athlon XP-M. The host is running 2.6.31 and the guests are 2.6.27.
I cannot upgrade neither host nor guests due to these problems:
- SKAS 3 patches available up to 2.6.31 only. Merging this to current
kernel might not be a problem, just some work, but:
- Severe data corruption on guest on recent guest kernel versions. I'm
using a few hard disk partitions directly for UML guests. Something
after 2.6.27 guest breaks this quite badly. Even for small data sets
like 100 MiB, copying a file to a different location on guest and then
running md5sum on both often produces a different result.
Do I have any options than to switch to Qemu and suffer the performance
penalty from emulation (kqemu is obsolete, too) or to switch to newer
hardware that supports kvm? Qemu performance is somewhat less than 10 %
of the native (or UML) performance.
I also found something called lguest but haven't given it a try yet.
Looks the most interesting but that doesn't seem to have much list
activity either. So it works perfectly for almost everyone or has few
RSS Feed