December 18, 2006

Just The Thing
32-bit signed int measured in microseconds?
Just the thing for timing a long-running benchmark.
Sigh.
Posted by: Pixy Misa at 08:51 AM | Comments (78) | Add Comment | Trackbacks (Suck)
1
Hey, two seconds is a really long time!
Posted by: Steven Den Beste at December 18, 2006 12:09 PM (+rSRq)
Posted by: Pixy Misa at December 18, 2006 12:51 PM (PiXy!)
3
As in, it lasts for about 36 minutes before resetting.
The real reason I want to move to 64-bit Linux is not expanded memory capacity or improved performance, it's fixing all these goddamn 32-bit counters. The bandwidth meter in ifconfig is another particularly irritating one.
The real reason I want to move to 64-bit Linux is not expanded memory capacity or improved performance, it's fixing all these goddamn 32-bit counters. The bandwidth meter in ifconfig is another particularly irritating one.
Posted by: Pixy Misa at December 18, 2006 01:46 PM (PiXy!)
4
I'm a programmer. I don't need to be able to multiply.
Posted by: Steven Den Beste at December 18, 2006 03:07 PM (+rSRq)
5
All 64-bit UNIXen adhere to the LP64 model (and not ILP64), therefore all ints are 32-bit. If counters are ints, they will continue to overflow. By the way... I just ran ip(8) and ifconfig(8) on an FC-5 box under strace and it appears that they obtain the stats with netlink. It's hard to imagine that overflowing, although it's possible. But it's even harder to imagine netlink messages changing basic data size.
Posted by: Pete Zaitcev at December 18, 2006 03:31 PM (9imyF)
6
Right, but a long is 32 bits under 32-bit Linux isn't it? So moving to 64 bits won't help if the programmer used an int, but will help if they used a long. (Remember that I program mostly in languages starting in "P", so I may use the term "int" generically without warning.)
Anyways, my single 64-bit box currently says:
RX bytes:343896482019 (320.2 GiB) TX bytes:137480366196 (128.0 GiB)
All my 32-bit boxes wrap around at 4GB.
Anyways, my single 64-bit box currently says:
RX bytes:343896482019 (320.2 GiB) TX bytes:137480366196 (128.0 GiB)
All my 32-bit boxes wrap around at 4GB.
Posted by: Pixy Misa at December 18, 2006 03:43 PM (PiXy!)
7
OK, maybe the wrap is inside the ifconfig and not on the kernel boundary. Please check if ip(8) wraps too. The syntax is "ip -s link show dev eth0" (thank ANK's sadistic tendencies).
Posted by: Pete Zaitcev at December 19, 2006 07:16 AM (+M8MH)
8
I’ve long understand any web logs anymore due to the fact too a lot of weblogs were either boring or not present. Or at worst, both. Right here it can be unique, the website is thrilling and informative.<a href=http://www.discontinuedmacmakeup.com/mac-concealer-c-18.html title='mac concealer nc20'>mac concealer nc20</a> Thank god you will discover even now this kind of sites on the net. Then once more it truly is really worth browsing.
Posted by: mac cosmetics at June 13, 2011 12:25 PM (20SkB)
Processing 0.0, elapsed 0.012 seconds.
16 queries taking 0.008 seconds, 30 records returned.
Page size 10 kb.
Powered by Minx 0.8 beta.