awslabs / damo

DAMON user-space tool
https://damonitor.github.io/
GNU General Public License v2.0
155 stars 26 forks source link

converting format from perf_data to json_compressed failed (parsing damon.data failed) #87

Closed Yitrus closed 4 months ago

Yitrus commented 10 months ago

Hi, I've read question #66, but it seems like our situation is a little different.

Below are the machine details:

uname -r 
6.1.0-rc1

perf --version
perf version 6.1.0-rc1

grep CONFIG_DAMON /boot/config-$(uname -r)
CONFIG_DAMON=y
CONFIG_DAMON_VADDR=y
CONFIG_DAMON_PADDR=y
CONFIG_DAMON_SYSFS=y
CONFIG_DAMON_DBGFS=y
CONFIG_DAMON_RECLAIM=y
CONFIG_DAMON_LRU_SORT=y

sudo pip3 install damo
Collecting damo
  Using cached damo-2.0.9-py3-none-any.whl (75 kB)
Installing collected packages: damo
Successfully installed damo-2.0.9

I'm going to sample a section of physical memory:

sudo damo record --numa_node 0 --ops paddr -r "4294967296-139586437119" --monitoring_nr_regions 400 5000 -s 5000
Press Ctrl+C to stop
^C
signal 2 received
[ perf record: Woken up 19 times to write data ]
[ perf record: Captured and wrote 6.410 MB damon.data (78409 samples) ]
converting format from perf_data to json_compressed failed (parsing damon.data failed)

Then I followed the advice in question 66, and I'm wondering if as well as the data was collected correctly, it's just the formatting that's problematic:

# perf record -e damon:damon_aggregated & damo start "sleep 5"
[1] 23982
# sleep 5
# killall perf
# [ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 1.499 MB perf.data (534 samples) ]
^C
[1]+  Terminated              perf record -e damon:damon_aggregated
# perf script -f
Segmentation fault (core dumped)

It looks like I should reinstall another version of perf?

sj-aws commented 10 months ago

Hi Yitrus,

Thank you for this report!

-rc1 version kernel tend to have some bugs that later fixed, so I suspect this might be a bug in perf or the kernel that already fixed in a later version. Could you please try latest 6.1.y (6.1.65 as of this writing) or mainline kernel and perf and share the results?

sjp38 commented 4 months ago

Hi Yitrus, could I ask your update if possible? I may close this issue unless I get some update within a week.