Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] timing for geeks II.
- Date: Sun, 18 Dec 2005 11:34:31 -0500
- From: Jim <jep200404@example.com>
- Subject: Re: [tlug] timing for geeks II.
- References: <20051202154627.GB4348@example.com><20051202152527.302e2f6f.jep200404@example.com><20051203122655.GG4348@example.com><20051203092314.3118db01.jep200404@example.com><20051204100726.GH4348@example.com><30ce84360512040313l351f16c4r1872cb4f6f34679e@example.com><20051206082734.GB4319@example.com><20051218162310.GD4525@example.com>
Michal Hajek <hajek1@example.com> wrote: > The gettimeofday() can get as bad as 0.03s time diference between > succesive readings (TDBSR). > clock_gettime(CLOCK_MONOTONIC..) can get as bad as 0.077034s TDBSR. > clock_gettime(CLOCK_REALTIME..) can get as bad as 0.0416s TDBSR. This is no surprise and is actually expected in a general purpose multitasking operating system such as Linux. You are probably not measuring deficiencies in the clock, but the amount of that the operating system does not run your program. This is a very well know issue on general purpose operating systems, including Linux. > There is a related question - can one buy a better clock for a linux > mashine? I imagine a gigaherz source in a PCI slot .... :) The clock is probably not the problem, and a "better" clock would probably not work any better for you. If you really need small "TDBSR", then you need a real-time operating system. Linux is a general purpose operating system, but is not a real-time operating system, although there is much work on improving Linux's real-time performance, even if it isn't an actual real-time operating system. There are also genuine (hard) real-time operating systems that can run Linux. What problem are you actually trying to solve (or understand)?
- Follow-Ups:
- Re: [tlug] timing for geeks II.
- From: Josh Glover
- Re: [tlug] timing for geeks II.
- From: Michal Hajek
- References:
- [tlug] timing for geeks :)
- From: Michal Hajek
- Re: [tlug] timing for geeks
- From: Jim
- Re: [tlug] timing for geeks
- From: Michal Hajek
- Re: [tlug] A Rich Experiment Indeed
- From: Jim
- Re: [tlug] A Rich Experiment Indeed
- From: Michal Hajek
- Re: [tlug] A Rich Experiment Indeed
- From: Ian Wells
- Re: [tlug] timing for geeks II.
- From: Michal Hajek
- Re: [tlug] timing for geeks II.
- From: Michal Hajek
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] timing for geeks II.
- Next by Date: [tlug] Re: [tlug-test-footer] Testing footer
- Previous by thread: Re: [tlug] timing for geeks II.
- Next by thread: Re: [tlug] timing for geeks II.
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links