Re: 64bit timestamp

看板FB_chat作者時間19年前 (2007/03/26 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/16 (看更多)
deeptech71@gmail.com wrote: > Oliver Fromme wrote: > > FreeBSD's UFS2 already uses 96bit timestamps, where 64 bits > > are used for seconds and 32 bits are used for nanoseconds. > > Is that sufficient for you? > > What the hell for? What's your problem? In your first mail you seemed to be complaining that there isn't sufficient range and accuracy in the time stamps. I explained to you that there is indeed more accuracy than you thought, and now you complain that there's too much of it? To answer your question: Modern hardware is already fast enough that sub-microsecond accuracy is required. Also keep in mind that it is undesirable to change the on-disk- format of a file system every year. When the UFS2 format was designed, it should be sufficient at least for the needs of ten years in the future, possibly even more. So the provision for nanosecond accuracy is not far off. Ideally, two consecutive, non-parallel operations should give two different timestamps. That applies to creating or touching a file or other kind of resource, or even just calling the gettimeofday() function from within the same thread, or whatever. In reality that isn't the case today for FreeBSD for other reasons, but the timestamp accuracy of UFS2 would certainly be sufficient for that. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch輎tsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M榀- chen, HRB 125758, Gesch輎tsf梶rer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "C++ is over-complicated nonsense. And Bjorn Shoestrap's book a danger to public health. I tried reading it once, I was in recovery for months." -- Cliff Sarginson _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #161iRo00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #161iRo00 (FB_chat)