Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Automatically Reasoning About How Systems Code Uses the CPU Cache
 
conference paper not in proceedings

Automatically Reasoning About How Systems Code Uses the CPU Cache

Iyer, Rishabh  
•
Argyraki, Katerina  
•
Candea, George  
July 2024
18th USENIX Symposium on Operating Systems Design and Implementation (OSDI'24)

We present a technique, called CFAR, that developers can use to reason precisely about how their code, as well as third-party code, uses the CPU cache. Given a piece of systems code P, CFAR employs program analysis and binary instrumentation to automatically "distill" how P accesses memory, and uses "projectors" on top of the extracted distillates to answer specific questions about P's cache usage. CFAR comes with three example projectors that report (1) how P's cache footprint scales across unseen inputs; (2) the cache hits and misses incurred by P for each class of inputs; and (3) potential vulnerabilities in cryptographic code caused by secretdependent cache-access patterns.

We implemented CFAR in an eponymous tool with which we analyze a performance-critical subset of four TCP stacks— two versions of the Linux stack, a stack used by the IX kernel-bypass OS, and the lwIP TCP stack for embedded systems— as well as 7 algorithm implementations from the OpenSSL cryptographic library, all 51 system calls of the Hyperkernel, and 2 hash-table implementations. We show how CFAR enables developers to not only identify performance bugs and security vulnerabilities in their own code but also understand the performance impact of incorporating third-party code into their systems without doing elaborate benchmarking.

  • Details
  • Metrics
Type
conference paper not in proceedings
Author(s)
Iyer, Rishabh  

EPFL

Argyraki, Katerina  

EPFL

Candea, George  

EPFL

Date Issued

2024-07

Editorial or Peer reviewed

REVIEWED

Written at

EPFL

EPFL units
DSLAB  
NAL  
Event nameEvent acronymEvent placeEvent date
18th USENIX Symposium on Operating Systems Design and Implementation (OSDI'24)

OSDI'24

Santa Clara, CA

2024-07-10 - 2024-07-12

Available on Infoscience
October 31, 2024
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/241781
Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés