248 reputation
18
bio website kbrandt.com
location Hollywood, FL
age 32
visits member for 3 years, 8 months
seen 2 hours ago

I'm the director of site reliability at Stack Exchange. I'm also the co-author of the bosun monitoring system and sometimes blogger on the Server Fault Blog.

@KyleMBrandt


Jul
10
answered Writing content from a file to another file on set time intervals using delimiters
Jul
2
awarded  Curious
Apr
29
comment Discovering the Cause of tcp rcvpruned?
@JoelDavis: And tcp_rmem is 183936 245248 367872, so I should still be okay unless there are some spikes between my polling of tcp_mem (which is every 15 seconds)
Apr
29
comment Discovering the Cause of tcp rcvpruned?
@JoelDavis: It is our load balancer, so it could mean a few people are getting a slower page load when loading these sites a day, so super critical! (Okay, it probably isn't a big deal, but "the more you know"
Apr
29
asked Discovering the Cause of tcp rcvpruned?
Apr
23
awarded  Yearling
Apr
23
asked How to interpret all fields of `utmpdump /var/log/utmp`
Apr
22
comment How to tell if a SCSI device is removable?
Also considering just using fstatfs and checking the fs type
Apr
22
answered How to tell if a SCSI device is removable?
Apr
22
asked How to tell if a SCSI device is removable?
Apr
9
awarded  Scholar
Apr
9
revised How to get CPU Percentage as a Counter?
added 74 characters in body
Apr
9
accepted How to get CPU Percentage as a Counter?
Apr
9
comment How to get CPU Percentage as a Counter?
This seems to work. I'm using opentsdb, which does a rate calculation for me from counters, so all I need to do is send it user+nice+system from the first line of /proc/stat divided by the number of cores. Whatever bug is messing with /proc/uptime doesn't seem to impact /proc/stat.
Apr
9
comment How to get CPU Percentage as a Counter?
@TAFKA'goldilocks': Do you what subset of the /proc/stat columns summed equals utilization? Is it user/system/nice?
Apr
9
awarded  Commentator
Apr
9
comment How to get CPU Percentage as a Counter?
@psusi: When I take two samples, and turn that into a per/second rate, I end up with centiseconds utlized per second. So for example, I would get 75 centiseconds per second. A second has 100 centiseconds. 75/100*100=75. Hence it the number is the same, regardless of what you want to call it.
Apr
9
comment How to get CPU Percentage as a Counter?
@TAFKA'goldilocks': Good idea, I'll do the math from /proc/stat and see if I run into this same bug on the machine exhibiting the behavior.
Apr
9
comment How to get CPU Percentage as a Counter?
@TAFKA'goldilocks': According to your answer uptime * num_core - idle_time = total active processor seconds. Doesn't it logically follow that total active processor seconds should never decrease?
Apr
9
comment How to get CPU Percentage as a Counter?
@psusi: If you divide by uptime it is no longer a counter, what I want is a counter.