Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1540291
| From | Eric Wong <e@80x24.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: epoll_wait inaccurate timeout |
| Date | 2016-12-12 12:50 +0100 |
| Message-ID | <sNxhg-3NJ-17@gated-at.bofh.it> (permalink) |
| References | <sJUYN-3L6-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
+Cc folks who may know about timer stuff on epoll.
Dmitry Banschikov <me@ubique.spb.ru> wrote:
> Hi!
>
> I have a problem caused by inaccurate timeouts in epoll_wait(2).
> Here are some parts of strace -tt output:
Which kernel version are you using?
> 22578 09:33:46.959791 epoll_wait(5, <unfinished ...>
> 22578 09:33:50.010794 <... epoll_wait resumed> [], 128, 1498) = 0
> ...
> 22034 09:35:07.686896 epoll_wait(5, <unfinished ...>
> 22034 09:35:09.482526 <... epoll_wait resumed> [{EPOLLIN,
> {u32=151458248, u64=151458248}}], 128, 362) = 1
> ...
> 22036 09:35:41.433241 epoll_wait(5, <unfinished ...>
> 22036 09:35:43.176881 <... epoll_wait resumed> [], 128, 97) = 0
>
> In each example epoll_wait is blocked for too longer then asked in timeout.
>
> Is it normal?
I don't think so, unless you have a huge /proc/<pid>/timerslack_ns
set. But I mainly use -1 or 0 as the timeout value.
> Please CC me.
That's standard procedure, here :)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
epoll_wait inaccurate timeout Dmitry Banschikov <me@ubique.spb.ru> - 2016-12-02 13:20 +0100
Re: epoll_wait inaccurate timeout Eric Wong <e@80x24.org> - 2016-12-12 12:50 +0100
Re: epoll_wait inaccurate timeout Dmitry Banschikov <me@ubique.spb.ru> - 2016-12-13 08:50 +0100
csiph-web