By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Linux 6.15 Perf Tooling Introduces New Support For Latency Profiling
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Linux 6.15 Perf Tooling Introduces New Support For Latency Profiling
Computing

Linux 6.15 Perf Tooling Introduces New Support For Latency Profiling

News Room
Last updated: 2025/03/31 at 4:10 PM
News Room Published 31 March 2025
Share
SHARE

The perf tools changes were merged today for the Linux 6.15 kernel. Most notable this cycle for the wonderful perf tooling is introducing the notion of latency profiling by leveraging kernel scheduler information. This latency data will be further useful for Linux software engineers working to optimize system latency/performance.

The perf tools pull request for Linux 6.15 explains of this new “–latency” option for the “perf record” command:

“Introduce latency profiling using scheduler information. The latency profiling is to show impacts on wall-time rather than cpu-time. By tracking context switches, it can weight samples and find which part of the code contributed more to the execution latency.

The value (period) of the sample is weighted by dividing it by the number of parallel execution at the moment. The parallelism is tracked in perf report with sched-switch records. This will reduce the portion that are run in parallel and in turn increase the portion of serial executions.

For now, it’s limited to profile processes, IOW system-wide profiling is not supported. You can add –latency option to enable this.”

Dmitry Vyukov of Google worked on this latency reporting for perf as well as a new parallelism key. In the prior patch series he further elaborated on this latency profiling focus and purpose:

“There are two notions of time: wall-clock time and CPU time. For a single-threaded program, or a program running on a single-core machine, these notions are the same. However, for a multi-threaded/multi-process program running on a multi-core machine, these notions are significantly different. Each second of wall-clock time we have number-of-cores seconds of CPU time.

Currently perf only allows to profile CPU time. Perf (and all other existing profilers to the be best of my knowledge) does not allow to profile wall-clock time.

Optimizing CPU overhead is useful to improve ‘throughput’, while optimizing wall-clock overhead is useful to improve ‘latency’. These profiles are complementary and are not interchangeable. Examples of where latency profile is needed:

– optimzing build latency
– optimizing server request latency
– optimizing ML training/inference latency
– optimizing running time of any command line program

CPU profile is useless for these use cases at best (if a user understands the difference), or misleading at worst (if a user tries to use a wrong profile for a job).
…
Brief outline of the implementation:
– add context switch collection during record
– calculate number of threads running on CPUs (parallelism level) during report
– divide each sample weight by the parallelism level
This effectively models that we were taking 1 sample per unit of wall-clock time.

We still default to the CPU profile, so it’s up to users to learn about the second profiling mode and use it when appropriate.”

The code is merged and ready to go with Linux 6.15. This new documentation goes into more detail on the CPU and latency overhead reporting for perf. Can’t wait to see what improvements will be uncovered by Google and others leveraging perf record –latency.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Cybersecurity Professor Mysteriously Disappears as FBI Raids His Homes
Next Article Best Apple deals from Amazon’s Big Spring Sale: Last chance to get MacBooks, iPads, and Apple Watches at lowest-ever prices
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

EU country asks Apple and Google to remove AI app from their app storefronts
News
This $50 iPad Air M3 discount is one of the best early Prime Day deals
News
Huawei intensifies China EV price war with new luxury sedan · TechNode
Computing
5 apps I recommend to every savvy investor
News

You Might also Like

Computing

Huawei intensifies China EV price war with new luxury sedan · TechNode

5 Min Read
Computing

Chinese EV maker Zeekr prepares for a $1 billion US IPO · TechNode

1 Min Read
Computing

EV maker backed by Huawei, CATL, and Changan launches first electric sedan · TechNode

1 Min Read
Computing

Double 11 shopping festival shows lower-than-expected rebound · TechNode

1 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?