Remove c
article thumbnail

The Speed of Time

Brendan Gregg

A Cassandra database cluster had switched to Ubuntu and noticed write latency increased by over 30%. As (C) looked like a kernel rebuild, I started with (D) and (E). ## 5. I also rewrote this in C and called gettimeofday(2) directly: $ cat gettimeofdaybench.c. What on Earth is Ubuntu doing that results in 30% higher CPU time!?

Speed 126
article thumbnail

How To Add eBPF Observability To Your Product

Brendan Gregg

biolatency Disk I/O latency histogram heat map. runqlat CPU scheduler latency heat map. Then, having discovered everything is C or Python, some rewrite it all in a different language. execsnoop New processes (via exec(2)) table. opensnoop Files opened table. ext4slower Slow filesystem I/O table. BPF up and running!

Latency 145
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

The Speed of Time

Brendan Gregg

A Cassandra database cluster had switched to Ubuntu and noticed write latency increased by over 30%. As (C) looked like a kernel rebuild, I started with (D) and (E). ## 6. I also rewrote this in C and called gettimeofday(2) directly: $ cat gettimeofdaybench.c What on Earth is Ubuntu doing that results in 30% higher CPU time!?

Speed 40
article thumbnail

The Speed of Time

Brendan Gregg

A Cassandra database cluster had switched to Ubuntu and noticed write latency increased by over 30%. As (C) looked like a kernel rebuild, I started with (D) and (E). I also rewrote this in C and called gettimeofday(2) directly: $ cat gettimeofdaybench.c What on Earth is Ubuntu doing that results in 30% higher CPU time!?

Speed 52
article thumbnail

Linux Load Averages: Solving the Mystery

Brendan Gregg

TABLE OF EXP(-T/C) FOR T = 5 SEC. EXPFF: EXP 0.920043902 ;C = 1 MIN EXP 0.983471344 ;C = 5 MIN EXP 0.994459811 ;C = 15 MIN. Some people have found values that seem to work for their systems and workloads: they know that when load goes over X, application latency is high and customers start complaining.

Latency 111
article thumbnail

Poor Disk Performance

Brendan Gregg

Update: Some modern drives after 2015 are sealed with [helium].) From these outputs I try to determine if the problem is: - **The workload**: High-latency disk I/O is commonly caused by the workload applied. Rotational disks have extra latency from head seeks for random I/O, and spin ups from the idle state. Hit Ctrl-C to end.

article thumbnail

How To Add eBPF Observability To Your Product

Brendan Gregg

biolatency Disk I/O latency histogram heat map 5. runqlat CPU scheduler latency heat map 10. Then, having discovered everything is C or Python, some rewrite it all in a different language. execsnoop New processes (via exec(2)) table 2. opensnoop Files opened table 3. ext4slower Slow filesystem I/O table 4. BPF up and running!