Menu

Bastard Blog

Rants about Linux, technology, data, and science

Primary Menu

Skip to content
  • Home
  • About
  • ComputerBastard
Search

Month: October 2016

Sort Memory Intensive Processes

Posted onOctober 27, 2016AuthoradminLeave a comment

This simple Linux command one-liner will give you the process name, PID, and memory usage in kb: for file in /proc/*/status ; do awk ‘/^Pid|VmRSS|Name/{printf $2 ” ” $3}END{ print “”}’ $file; done | sort -k 3 -n -r | less Produces something like the following: R 19173 8206748 kB R 19305 7097212 kB clamd Read More …

CategoriesHowto, Linux, Quick Tip

Tracking Memory and Swap Usage

Posted onOctober 6, 2016AuthoradminLeave a comment

In Linux, there is a relatively simple way to track memory and swap usage by process.  First look to the directory “/procs”.  Here you will see a list of subdirectories named by running process ids (PIDs).  Each subdirectory contains files and other directories that contain useful information about that process.  For the metrics we want, Read More …

CategoriesHowto, Linux, Quick Tip

Recent Posts

  • List all user Screen Sessions
  • SaaS: More Dangers of the Cloud
  • IaaS: Danger! Unexpected Risks Lie Ahead
  • Covid-19: Overreactions, Economic Destruction, Supply Chain Disruptions
  • Free Will?

Recent Comments

  • Rich Knapp on Covid-19: Overreactions, Economic Destruction, Supply Chain Disruptions
  • beesey on Canadian Healthcare: A Kafkaesque Nightmare
  • Srednii on Create Bootable Hirens CD on USB using Linux
  • amy rollis on Canadian Healthcare: A Kafkaesque Nightmare
  • admin on Canadian Healthcare: A Kafkaesque Nightmare

Archives

  • January 2021
  • March 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • December 2016
  • November 2016
  • October 2016
  • August 2016
  • March 2016
  • September 2015
  • July 2015
  • April 2015
  • March 2015
  • December 2014
  • January 2013
  • December 2012
  • November 2012

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2021 Bastard Blog. All Rights Reserved. | Catch Responsive by Catch Themes
Scroll Up
  • Home
  • About
  • ComputerBastard