Software Archive
Read-only legacy content
17061 Discussions

Memory usage tool

Teodor_P_
Beginner
810 Views

Hi, Is there any tool I can use on the Xeon Phi to see which program is using what amount of memory. There reason for this request is that I'm seeing a constant increase of the memory usage reported by the micsmc tool, but I don't know which process is using it. Probably it is something related to the ram disk, but I don't know how to check its memory requirements. Is there any tool I can use? Best regards, Teodor Petrov

0 Kudos
8 Replies
Sumedh_N_Intel
Employee
810 Views

You could try logging into the coprocessor and running top. It gives a %MEM value that can help figure out which process is consuming the memory. 

0 Kudos
Teodor_P_
Beginner
810 Views

I've tried that but the top included on the mic seems to miss the option to sort by memory or anything else than the default. Is this the case?

0 Kudos
Sumedh_N_Intel
Employee
810 Views

Did you try `top -m` ? 

Its output looks like this: 

Mem total:5878668 anon:2940 map:3052 free:5534688
slab:77444 buf:0 cache:85640 dirty:0 write:0
Swap total:0 free:0
PID* VSZ VSZRW RSS (SHR) DIRTY (SHR) STACK COMMAND
4440 169m 18692 3276 648 3272 644 132 /bin/coi_daemon --coiuser=micuser
12731 23184 640 2372 1048 2368 1044 132 sshd: root@pts/0
4433 21084 636 1188 812 1188 812 132 /sbin/sshd
12733 6940 336 744 540 740 536 132 -sh
12736 6940 336 688 536 684 532 132 top -m
4505 6940 336 672 560 668 556 132 /sbin/getty -L -l /bin/noauth 115200 /dev/console
1 6936 332 720 596 716 592 132 init

0 Kudos
Teodor_P_
Beginner
810 Views

No, but it doesn't help much.

Can I see somehow, how much memory does use the ram disk?

0 Kudos
James_C_Intel2
Employee
810 Views

"Can I see somehow, how much memory does use the ram disk?"

Log in to the card and run df (just as you would do to see usage of any file system on a Linux machine).

0 Kudos
Teodor_P_
Beginner
810 Views

Hm,

It turned out that all the memory has been allocated for file caches. Dropping them fixed the issue. Is it possible to add a feature request to improve micsmc to display this information (about file buffers and caches) ?

0 Kudos
KEERIYAT__P_
Beginner
810 Views

I have made an application, Which is written on DVD ROM consumes 80%, It is a fully animated E book, Can you rate the memory usage by Intel standard

0 Kudos
TaylorIoTKidd
New Contributor I
810 Views

Keeriyat P,

I believe you have the wrong support forum.

If not, can you elaborate on your issue and how the Intel Xeon Phi coprocessor comes into play?

Regards
--
Taylor

0 Kudos
Reply