<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Ps</id>
	<title>Ps - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Ps"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Ps&amp;action=history"/>
	<updated>2026-05-15T09:15:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=Ps&amp;diff=156&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;&lt;b&gt;ps&lt;/b&gt; - report a snapshot of the current processes.  ====How to read PS (Basics)==== ---- Example:  $ ps   PID TTY          TIME CMD  8741 pts/0    00:00:00 bash  8863 pts/0    00:00:00 ps * PID = Process ID * pts = Psuedo Terminal Session  Show all processes running on the system:  $ ps -ef  UID        PID  PPID  C STIME TTY          TIME CMD  root         1     0  0 May10 ?        00:00:25 /usr/lib/systemd/systemd --switched-root --system --deserialize 22  root...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Ps&amp;diff=156&amp;oldid=prev"/>
		<updated>2024-09-11T14:22:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;b&amp;gt;ps&amp;lt;/b&amp;gt; - report a snapshot of the current processes.  ====How to read PS (Basics)==== ---- Example:  $ ps   PID TTY          TIME CMD  8741 pts/0    00:00:00 bash  8863 pts/0    00:00:00 ps * PID = Process ID * pts = Psuedo Terminal Session  Show all processes running on the system:  $ ps -ef  UID        PID  PPID  C STIME TTY          TIME CMD  root         1     0  0 May10 ?        00:00:25 /usr/lib/systemd/systemd --switched-root --system --deserialize 22  root...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;b&amp;gt;ps&amp;lt;/b&amp;gt; - report a snapshot of the current processes.&lt;br /&gt;
&lt;br /&gt;
====How to read PS (Basics)====&lt;br /&gt;
----&lt;br /&gt;
Example:&lt;br /&gt;
 $ ps&lt;br /&gt;
  PID TTY          TIME CMD&lt;br /&gt;
 8741 pts/0    00:00:00 bash&lt;br /&gt;
 8863 pts/0    00:00:00 ps&lt;br /&gt;
* PID = Process ID&lt;br /&gt;
* pts = Psuedo Terminal Session&lt;br /&gt;
&lt;br /&gt;
Show all processes running on the system:&lt;br /&gt;
 $ ps -ef&lt;br /&gt;
 UID        PID  PPID  C STIME TTY          TIME CMD&lt;br /&gt;
 root         1     0  0 May10 ?        00:00:25 /usr/lib/systemd/systemd --switched-root --system --deserialize 22&lt;br /&gt;
 root         2     0  0 May10 ?        00:00:00 [kthreadd]&lt;br /&gt;
 root         4     2  0 May10 ?        00:00:00 [kworker/0:0H]&lt;br /&gt;
 root         5     2  0 May10 ?        00:00:01 [kworker/u4:0]&lt;br /&gt;
 root         6     2  0 May10 ?        00:00:00 [mm_percpu_wq]&lt;br /&gt;
 root         7     2  0 May10 ?        00:00:00 [ksoftirqd/0]&lt;br /&gt;
 root         8     2  0 May10 ?        00:00:08 [rcu_sched]&lt;br /&gt;
 root         9     2  0 May10 ?        00:00:00 [rcu_bh]&lt;br /&gt;
 root        10     2  0 May10 ?        00:00:00 [migration/0]&lt;br /&gt;
 root        11     2  0 May10 ?        00:00:00 [watchdog/0]&lt;br /&gt;
 root        12     2  0 May10 ?        00:00:00 [cpuhp/0]&lt;br /&gt;
 root        13     2  0 May10 ?        00:00:00 [cpuhp/1]&lt;br /&gt;
 root        14     2  0 May10 ?        00:00:00 [watchdog/1]&lt;br /&gt;
 root        15     2  0 May10 ?        00:00:00 [migration/1]&lt;br /&gt;
 root        16     2  0 May10 ?        00:00:00 [ksoftirqd/1]&lt;br /&gt;
 root        18     2  0 May10 ?        00:00:00 [kworker/1:0H] &lt;br /&gt;
* PPID = Parent PID&lt;br /&gt;
* ? = Process running as a daemon, not attached to the terminal. &lt;br /&gt;
* Commands in [] = Kernel threads&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====How to find the processor which a process is running on====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
1. Run the following commands and then review the output to determine the following:&lt;br /&gt;
&lt;br /&gt;
* The process ID of the process. In this example, we are showing the aws-replication-agent process.&lt;br /&gt;
 # pidof &amp;lt;process&amp;gt;&lt;br /&gt;
 # pidof /var/lib/aws-replication-agent/jre/bin/java&lt;br /&gt;
&lt;br /&gt;
* The CPU core (indicated by psr) that it&amp;#039;s running on.&lt;br /&gt;
 # ps --pid $(pidof &amp;lt;process&amp;gt;) -o psr,pid,comm&lt;br /&gt;
 # ps --pid $(pidof /var/lib/aws-replication-agent/jre/bin/java) -o psr,pid,comm&lt;br /&gt;
&lt;br /&gt;
Then, check the CPU utilization of the identified CPU core.&lt;br /&gt;
 # mpstat -P &amp;lt;psr column value&amp;gt; 3&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>