>>>>> "Jeff" == Jeff Dike <[EMAIL PROTECTED]> writes:
Jeff> On Mon, Jul 03, 2006 at 02:20:16PM +0200, Jan Rychter wrote:
>> 1) I mount /home with hostfs using the following line in fstab:
>> none /home hostfs /home,rw 0 0
>>
>> df shows:
>>
>> none 10413255443693385415481253412470784
>> 10413248933519167673017998136836096
>> 47190722440083771496586606219886592 19% /home
>> 2) the guest OS sees stale file content on hostfs mounts. E.g. I
>> open a
>> file in the UML machine, look at it, close it, edit on the host,
>> open it again on the UML -- and I don't get the changes saved on the
>> host. This is a major problem.
Jeff> This is due to hostfs using the page cache. mount -o sync should
Jeff> help the other direction - modify it inside UML and the changes
Jeff> should be visible on the host.
Jeff> The direction you want is a bit more complicated given that
Jeff> hostfs uses the page cache. The last time I thought about this,
Jeff> I was thinking about using inotify to know when to invalidate
Jeff> files from the UML page cache when they are modified on the host.
Since it seems to be a known issue, perhaps it's worth documenting it on
the web site -- I wouldn't have used hostfs if I knew it could mean
stale data for UML (the information is probably in there somewhere, but
I missed it).
>> 3) what do these messages mean:
>>
>> setitimer: mpr (pid = 1646) provided invalid timeval it_value:
>> tv_sec = 0 tv_usec = 1790000 setitimer: mpr (pid = 1646) provided
>> invalid timeval it_value: tv_sec = 0 tv_usec = 1943000
Jeff> Where do they come from? They're not kernel messages.
No idea. Probably glibc.
>> 4) my application sometimes hangs completely, eating CPU, until I
>> type
>> something in another console (!!!).
Jeff> Can you strace it during this period and see what it's doing?
Jeff> This looks like an interesting bug.
I think this is the relevant snippet:
[...]
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
times({tms_utime=260, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21373
getrusage(RUSAGE_SELF, {ru_utime={2, 600000}, ru_stime={1, 750000}, ...}) = 0
gettimeofday({1152257489, 617919}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
times({tms_utime=263, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21369
times({tms_utime=263, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21369
getrusage(RUSAGE_SELF, {ru_utime={2, 630000}, ru_stime={1, 750000}, ...}) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
times({tms_utime=271, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21359
getrusage(RUSAGE_SELF, {ru_utime={2, 710000}, ru_stime={1, 750000}, ...}) = 0
gettimeofday({1152257489, 746673}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
times({tms_utime=275, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21354
times({tms_utime=275, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21354
getrusage(RUSAGE_SELF, {ru_utime={2, 750000}, ru_stime={1, 750000}, ...}) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
times({tms_utime=282, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21331
getrusage(RUSAGE_SELF, {ru_utime={2, 830000}, ru_stime={1, 750000}, ...}) = 0
gettimeofday({1152257490, 29341}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
times({tms_utime=288, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21324
times({tms_utime=288, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21324
getrusage(RUSAGE_SELF, {ru_utime={2, 880000}, ru_stime={1, 750000}, ...}) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
times({tms_utime=294, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21317
getrusage(RUSAGE_SELF, {ru_utime={2, 940000}, ru_stime={1, 750000}, ...}) = 0
gettimeofday({1152257490, 174689}, NULL) = 0
mmap2(0x720e8000, 2097152, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x720e80
00
gettimeofday({1152257490, 248411}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
times({tms_utime=361, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21219
times({tms_utime=361, tms_stime=175, tms_cutime=0, tms_cstime=0}) = -21219
getrusage(RUSAGE_SELF, {ru_utime={3, 610000}, ru_stime={1, 750000}, ...}) = 0
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476505
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigreturn(0x722bda19) = 1915476513
[... this goes on until there is enough "movement" in another TTY ...]
--J.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user