linux-um archives
 help / color / mirror / Atom feed
From: clowncoder <vincent-perrier@club-internet.fr>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] g_timeout_add
Date: Thu, 14 Feb 2008 23:16:45 +0100	[thread overview]
Message-ID: <47B4BDCD.4080605@club-internet.fr> (raw)
In-Reply-To: <20080214003853.GA15952@c2.user-mode-linux.org>

With strace, when I do nothing on the gtk screen, we get
what is under, it seems that the poll has a 5000 milli-sec
timeout, but takes 10 sec to wake.

When I move the mouse on the gtk screen, there are too many
events on the screen to see anything but I can send it if you
need it.

gettimeofday({1203026980, 431960}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 5000)  = 0
gettimeofday({1203026990, 459054}, NULL) = 0
gettimeofday({1203026990, 459250}, NULL) = 0
write(1, "1203026990\n", 111203026990
)            = 11
read(3, 0x809e004, 4096)                = -1 EAGAIN (Resource 
temporarily unavailable)
gettimeofday({1203026990, 459871}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 5000)  = 0
gettimeofday({1203027000, 470939}, NULL) = 0
gettimeofday({1203027000, 471136}, NULL) = 0
write(1, "1203027000\n", 111203027000
)            = 11


Jeff Dike wrote:
> On Wed, Feb 13, 2008 at 08:57:20PM +0100, clowncoder wrote:
>   
>> It seems that g_timeout_add glib timeouts are not accurate
>> when there is no gtk activity on an uml target.
>>
>> This may be a glib problem since I cannot check
>> that it does not occur on my host.
>>
>> When gtk events occur through mouse moves, then
>> the timeout is good (a 5 sec timeout) if no graphical
>> activity exists, the timeout takes an average of 12 sec,
>> even if there is console activity on the uml machine.
>>     
>
> You're going to need to tell me what's happening at the system call
> level - i.e. strace it and see what is doing something it shouldn't.
>
> 				Jeff
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2008-02-14 22:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-13 19:57 [uml-devel] g_timeout_add clowncoder
2008-02-14  0:38 ` Jeff Dike
2008-02-14 22:16   ` clowncoder [this message]
2008-02-15 16:02     ` Jeff Dike
2008-02-15 17:39       ` clowncoder
2008-02-15 18:46         ` Jeff Dike
2008-03-14 23:01           ` [uml-devel] [2.6.24.x] UML select()/poll() oversleeping reproducibly (was Re: g_timeout_add) Nix
2008-03-17 16:27             ` Jeff Dike
2008-03-17 17:03             ` Jeff Dike
2008-03-17 19:34             ` Jeff Dike
2008-03-17 21:08               ` [uml-devel] [2.6.24.x] UML select()/poll() oversleeping reproducibly Nix
2008-03-18 17:00                 ` Jeff Dike
2008-03-18 19:39                   ` Nix
2008-03-19 22:14                   ` Nix
2008-02-21 22:02   ` [uml-devel] Timeout in the select clowncoder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B4BDCD.4080605@club-internet.fr \
    --to=vincent-perrier@club-internet.fr \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox