Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory graph issue #1

Open
charlicruz opened this issue Jun 28, 2019 · 1 comment
Open

memory graph issue #1

charlicruz opened this issue Jun 28, 2019 · 1 comment

Comments

@charlicruz
Copy link

Dear Alex I am using your memory graph code under Mac Matlab and I am experiencing some problems. Warning: we waited, but no memorygraph data found in memorygraph_9878fdd5.tmp, or file has been erased!
/bin/bash: line 0: kill: (58741) - No such process
no data found! the self-test has failed. Did some alien intervention erase the tempfile?

memorygraph

Do you know exactly where the issue is arising from?
thanks in advance

@ahbarnett
Copy link
Owner

Dear Carlos,
I haven't tried this on a mac (note the doc says linux/unix only). It uses various unix commands (top, jobs, kill, etc). It probably has something to do with the "top" command format being different on BSD. Eg, the ordering of "top" columns has to match (col 11 is the time, etc), like this:

top - 11:40:53 up 30 days, 12:41, 1 user, load average: 0.15, 0.18, 0.26
Tasks: 321 total, 1 running, 319 sleeping, 1 stopped, 0 zombie
%Cpu(s): 14.5 us, 5.3 sy, 1.8 ni, 78.2 id, 0.1 wa, 0.0 hi, 0.2 si, 0.0 st
KiB Mem : 32805892 total, 8016900 free, 9476208 used, 15312784 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 20386308 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31046 alex 20 0 42092 3912 3116 R 12.5 0.0 0:00.02 top
883 avahi 20 0 51640 10140 3172 S 6.2 0.0 433:21.70 avahi-dae+
...

Running "top -b" removes the header, but column order should match.

Another thing you can do: look at the file memorygraph_9878fdd5.tmp that it made. It should look like "top -b" output just for one PID.

I will try to find a mac with matlab on it and run it. Or if you're interested, please try to figure it out.
Best, Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants