• 0x.tools Linux पर application performance का विश्लेषण करने के लिए open source utilities का एक संग्रह है
  • इसका लक्ष्य आसान deployment और न्यूनतम dependencies रखकर system troubleshooting में friction को कम करना है
  • OS upgrade, kernel module installation, भारी monitoring frameworks, Java agent, या database installation की आवश्यकता नहीं है
  • यह individual thread level की activity को माप सकता है, और code execution, sleep state, system calls, तथा kernel wait locations आदि को trace और sample करता है

xcapture-bpf & xtop 2.0.2 beta जारी

  • xcapture-bpf और xtop, Linux के top tool जैसे हैं, लेकिन eBPF का उपयोग करके performance data को कई अलग-अलग कोणों से देख सकते हैं
  • system-level overview से लेकर individual thread activity और kernel events तक drill-down किया जा सकता है
  • eBPF पूरी तरह programmable है, और इसे अधिकतम उपयोग में लाने की योजना है

xcapture-bpf terminal highlighting और stacktile

  • terminal text search/highlighting और scroll features नए stacktile format के साथ अच्छी तरह काम करते हैं
  • stacktile में सिर्फ function name ही नहीं, बल्कि file name या memory allocation reason जैसी विभिन्न जानकारी भी शामिल हो सकती है

xcapture-bpf installation

  • xcapture-bpf अभी beta version में है, इसलिए इसे production systems पर न चलाएँ
  • यह eBPF का उपयोग करता है, और फिलहाल BCC और python3 को frontend के रूप में उपयोग करता है
  • RHEL 8.1 या Ubuntu 24.04 और उससे ऊपर पर परीक्षण किया गया है

शामिल tools

  • real-time interactive tools और low-frequency profiling tools उपलब्ध कराता है
  • मुख्य tools का विवरण:
    • psn: वर्तमान top thread activity का sampling
    • xcapture: low-overhead thread state sampler
    • xcapture-bpf: eBPF का उपयोग करने वाला low-overhead programmable thread state sampler
    • syscallargs: system calls और arguments की सूची
    • schedlat: किसी एक process की CPU scheduling latency दिखाता है
    • run_xcapture.sh: xcapture को लगातार चलाने के लिए एक सरल daemon script
    • run_xcpu.sh: CPU पर threads की low-frequency continuous stack sampling

उपयोग और example output

  • xcapture का उपयोग करके Linux thread activity को sample किया जा सकता है और fixed-width output दिखाया जा सकता है
  • CSV file में output करके command line से performance analysis किया जा सकता है

installation और usage

  • xcapture, schedlat, psn standard Linux tools की तरह /proc file system को sample करते हैं
  • बिना किसी अतिरिक्त configuration के Linux kernel version 2.6 और उसके बाद के संस्करणों पर काम करता है

FAQ

  • 0x.tools GPL v3 license वाला open source product है
  • measurement overhead server CPU capacity के 1% से कम है
  • production environments में सुरक्षित रूप से उपयोग किया जा सकता है
  • Perf और eBPF के बजाय /proc sampling का उपयोग करने का कारण: कुछ मौजूदा enterprises में large-scale production के लिए eBPF का उपयोग संभव नहीं है

GN⁺ की राय

  • 0x.tools Linux system performance analysis के लिए एक शक्तिशाली toolset है
  • eBPF का उपयोग करके performance data को विभिन्न कोणों से देख पाना उपयोगी है
  • इसे production environments में सुरक्षित उपयोग के लिए डिज़ाइन किया गया है
  • अन्य performance analysis tools की तुलना में low overhead और आसान installation इसके फायदे हैं
  • eBPF जैसी आधुनिक technologies का उपयोग करके performance analysis की accuracy और flexibility बढ़ती है

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.