awslabs / damo

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

How to use filter in damo #59

Closed hyeongtakji closed 11 months ago

hyeongtakji commented 1 year ago

Hello,

Is there anyway I can use filters with damo? I could find some examples here, but I'm not really used to using json with damo.

Or, can I use -c option along with normal usage like:

$ sudo damo schemes --damos_access_rate 0 0 --damos_sz_region 4K max \
                    --damos_age 60s max --damos_action pageout \
                    -c ./my_filter.json
                    <pid of your workload>

Also, any texts about the way to use json file will be useful to me.

Thanks!

sj-aws commented 1 year ago

Hello,

Is there anyway I can use filters with damo? I could find some examples here, but I'm not really used to using json with damo.

Currently, the json-based input is the only available one. It is still not having good enough documentation, though.

Or, can I use -c option along with normal usage like:

Unfortunately, no, at the moment. We have a plan to provide that in future.

Also, any texts about the way to use json file will be useful to me.

I agree, and that's also in the TODO list. We are aiming to make at least the first draft of it before the version number exceeds 2.0.0.

hyeongtakji commented 1 year ago

Thank you for your quick answer.

Currently, the json-based input is the only available one.

Is there any plan to add filters options in damo?

We are aiming to make at least the first draft of it before the version number exceeds 2.0.0.

Great to hear that! I will wait for it.

sj-aws commented 1 year ago

Is there any plan to add filters options in damo?

Yes, we want to add it in a future, as a part of --damos_* options. But, ETA is not clear at the moment. We wish to make it before v2.0.0, though.

Great to hear that! I will wait for it.

Thank you, please stay tuned! Also, if this becomes urgent for you, please don't hesitate at asking escalation to me.

sj-aws commented 11 months ago

Commit bec360cce52c ("_damon_args: Support DAMOS filters via command line") implements the command line option for DAMOS filters. Please read the commit message for more detailed usage.

Please note that the feature is not documented. That means the feature is not stable yet, and the interface could be changed in a future.

hyeongtakji commented 11 months ago

Great! Glad that I can use filters with command line. I'll close this issue.