Skip to content

Commit bf7e351

Browse files
Making final changes
1 parent 4ecd367 commit bf7e351

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

defender-endpoint/linux-support-perf.md

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,25 @@ To collect current statistics (for files),
177177
```bash
178178
sudo mdatp diagnostic hot-event-sources files
179179
```
180-
The output of which will look similar to the following (JSON);
180+
The output of which will look similar to the following on the console (this is just a snippet of the entire output). Here, the first row is the count (frequency of occurrence) and the second is the file path.;
181+
182+
```console
183+
Total Events: 11179 Time: 12s. Throughput: 75.3333 events/sec.
184+
=========== Top 684 Hot Event Sources ===========
185+
count file path
186+
2832 /mnt/RamDisk/postgres_data/pg_wal/0000000100000014000000A5
187+
632 /mnt/RamDisk/postgres_data/base/635594/2601
188+
619 /mnt/RamDisk/postgres_data/base/635597/2601
189+
618 /mnt/RamDisk/postgres_data/base/635596/2601
190+
618 /mnt/RamDisk/postgres_data/base/635595/2601
191+
616 /mnt/RamDisk/postgres_data/base/635597/635610
192+
615 /mnt/RamDisk/postgres_data/base/635596/635602
193+
614 /mnt/RamDisk/postgres_data/base/635595/635606
194+
514 /mnt/RamDisk/postgres_data/base/635594/635598_fsm
195+
496 /mnt/RamDisk/postgres_data/base/635597/635610_fsm
196+
```
197+
This command generates a Hot event source report which is saved in your local folder that can further investigated.
198+
The output looks like follows on the json file;
181199

182200
```console
183201
{
@@ -204,32 +222,34 @@ The output of which will look similar to the following (JSON);
204222
]
205223
}
206224
```
207-
And similarly output on the console looks like the following (this is just a snippet of the entire output). Here, the first row is the count (frequency of occurrence) and the second is the file path.
208225

209-
```console
210-
Total Events: 11179 Time: 12s. Throughput: 75.3333 events/sec.
211-
=========== Top 684 Hot Event Sources ===========
212-
count file path
213-
2832 /mnt/RamDisk/postgres_data/pg_wal/0000000100000014000000A5
214-
632 /mnt/RamDisk/postgres_data/base/635594/2601
215-
619 /mnt/RamDisk/postgres_data/base/635597/2601
216-
618 /mnt/RamDisk/postgres_data/base/635596/2601
217-
618 /mnt/RamDisk/postgres_data/base/635595/2601
218-
616 /mnt/RamDisk/postgres_data/base/635597/635610
219-
615 /mnt/RamDisk/postgres_data/base/635596/635602
220-
614 /mnt/RamDisk/postgres_data/base/635595/635606
221-
514 /mnt/RamDisk/postgres_data/base/635594/635598_fsm
222-
496 /mnt/RamDisk/postgres_data/base/635597/635610_fsm
223-
```
224-
In the above example, we can see that postgres_data/pg_wal file generates the most activity.
226+
In the above example, we can see that the file /mnt/RamDisk/postgres_data/pg_wal/0000000100000014000000A5 generates the most activity.
225227

226228
Also, similarly for the executables,
227229

228230
```bash
229231
sudo mdatp diagnostic hot-event-sources executables
230232
```
231233

232-
The output of which will look similar to the following (JSON);
234+
The output of which will look similar to the following on the console;
235+
236+
```console
237+
Total Events: 47382 Time: 18s. Throughput: 157 events/sec.
238+
=========== Top 23 Hot Event Sources ===========
239+
count executable path
240+
8216 /usr/lib/postgresql/12/bin/psql
241+
5721 /usr/lib/postgresql/12/bin/postgres (deleted)
242+
3557 /usr/bin/bash
243+
378 /usr/bin/clamscan
244+
88 /usr/bin/sudo
245+
70 /usr/bin/dash
246+
30 /usr/sbin/zabbix_agent2
247+
10 /usr/bin/grep
248+
8 /usr/bin/gawk
249+
6 /opt/microsoft/mdatp/sbin/wdavdaemonclient
250+
4 /usr/bin/sleep
251+
```
252+
This is the output saved in the hot event source report in json;
233253

234254
```console
235255
{
@@ -256,25 +276,7 @@ The output of which will look similar to the following (JSON);
256276
]
257277
}
258278
```
259-
Output on the console;
260-
261-
```console
262-
Total Events: 47382 Time: 18s. Throughput: 157 events/sec.
263-
=========== Top 23 Hot Event Sources ===========
264-
count executable path
265-
8216 /usr/lib/postgresql/12/bin/psql
266-
5721 /usr/lib/postgresql/12/bin/postgres (deleted)
267-
3557 /usr/bin/bash
268-
378 /usr/bin/clamscan
269-
88 /usr/bin/sudo
270-
70 /usr/bin/dash
271-
30 /usr/sbin/zabbix_agent2
272-
10 /usr/bin/grep
273-
8 /usr/bin/gawk
274-
6 /opt/microsoft/mdatp/sbin/wdavdaemonclient
275-
4 /usr/bin/sleep
276-
```
277-
In this example, after 18s the command shows that bin/psql and bin/postgres executables generate the most activity.
279+
In this example, after 18s the command shows that the executables; /usr/lib/postgresql/12/bin/psql and /usr/lib/postgresql/12/bin/postgres (deleted) generate the most activity.
278280

279281
To improve the performance of Defender for Endpoint on Linux, locate the path with the highest number in `count` row and add a global process exclusion (in case of executable) or a global file/folder exclusion (in case of file) for it. For more information, see [Configure and validate exclusions for Defender for Endpoint on Linux](linux-exclusions.md).
280282

0 commit comments

Comments
 (0)