Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosGoogle Chrome: Unfinished Projects: Solange’s Public Sculpture(21.09.2026 um 17:02 Uhr)
Windows Tipps & SecurityBlurry or pixelated video in Microsoft Teams(21.09.2026 um 14:34 Uhr)
Sicherheitslücken (CVE)USN-8791-1: Ghostscript vulnerability(21.09.2026 um 14:51 Uhr)
Sicherheitslücken (CVE)USN-8792-1: Memcached vulnerability(21.09.2026 um 15:02 Uhr)
Sichere ProgrammierungI stopped rewriting the same Electron boilerplate — so I packaged it(21.09.2026 um 17:28 Uhr)
YouTube Security VideosGoogle Chrome: Unfinished Projects: Solange’s Public Sculpture(21.09.2026 um 17:02 Uhr)
Windows Tipps & SecurityBlurry or pixelated video in Microsoft Teams(21.09.2026 um 14:34 Uhr)
Sicherheitslücken (CVE)USN-8791-1: Ghostscript vulnerability(21.09.2026 um 14:51 Uhr)
Sicherheitslücken (CVE)USN-8792-1: Memcached vulnerability(21.09.2026 um 15:02 Uhr)
Sichere ProgrammierungI stopped rewriting the same Electron boilerplate — so I packaged it(21.09.2026 um 17:28 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

ps_mem: A Lightweight Tool for Accurate Memory Usage Reporting

ps_mem: A Lightweight Tool for Accurate Memory Usage Reporting Are you looking for a reliable way to measure the memory footprint of your programs on Linux? Look no further than ps_mem! This simple Python script provides an accurate view…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




ps_mem: A Lightweight Tool for Accurate Memory Usage Reporting



Are you looking for a reliable way to measure the memory footprint of your programs on Linux? Look no further than ps_mem! This simple Python script provides an accurate view of a program's in-core memory usage.



What it Does



ps_mem goes beyond the basic memory information provided by tools like ps. It delves into the /proc filesystem to extract a more precise picture of memory consumption, including:




  • Resident Set Size (RSS): The amount of physical memory a process actively uses.

  • Shared Memory: Memory shared with other processes. This helps identify potential memory optimization opportunities.



Key Features




  • Accuracy: ps_mem leverages the /proc/$pid/smaps file for more accurate memory reporting compared to traditional methods.

  • Lightweight: Being a Python script, ps_mem is easy to install and use, with minimal resource overhead.

  • Informative Output: ps_mem displays memory usage in human-readable units (KiB, MiB, etc.) for easy comprehension.

  • Process Counting: It also reports the number of processes with a specific name, aiding in identifying resource-intensive applications.



Getting Started



ps_mem is available on GitHub: https://github.com/pixelb/ps_mem



Installation:




  1. Ensure you have Python 3 installed.

  2. Clone the repository: git clone https://github.com/pixelb/ps_mem.git

  3. Navigate to the project directory: cd ps_mem

  4. Run the script: python ps_mem.py



Going Further



ps_mem offers a straightforward approach to memory analysis.




  • For detailed information on script functionality, refer to the commit history: https://github.com/pixelb/ps_mem

  • If you're comfortable with Python, consider contributing to the project's development!



For a deeper dive into memory management, explore tools like top and htop for real-time monitoring, or consider profiling tools for a more comprehensive analysis.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten ps_mem: A Lightweight Tool for Accurate Memory Usage Reporting

Thematisch verwandte Begriffe: psmem, Lightweight, Tool, Accurate · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94393 | When a user creates or edits a report inside an event, MISP can identify…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick