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

add some metrics for meminfo #315

Closed
wants to merge 1 commit into from
Closed

add some metrics for meminfo #315

wants to merge 1 commit into from

Conversation

wulmx
Copy link

@wulmx wulmx commented Jan 21, 2020

dirty/writeback ... and so on,
improve readabilty of refresh_load

Signed-off-by LiMing Wu 19092205@suning.com

Copy link
Member

@brauner brauner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skimming through, this looks good to me. Thanks for doing this. Can you please rebase since there's a conflict now.

bindings.c Outdated
@@ -3544,7 +3604,9 @@ static int proc_meminfo_read(char *buf, size_t size, off_t offset,
memlimit = get_min_memlimit(cg, "memory.limit_in_bytes");
if (!cgfs_get_value("memory", cg, "memory.usage_in_bytes", &memusage_str))
goto err;
if (!cgfs_get_value("memory", cg, "memory.stat", &memstat_str))

mstat = (struct memory_stat *)malloc(sizeof(struct memory_stat));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't cast malloc().

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't cast malloc().

thanks for your comment, I have fixed it. please refer to my master branch

@brauner
Copy link
Member

brauner commented Jan 29, 2020

Can you rebase the branch, please. It currently has merge conflicts with master :)

dirty/writeback  ... and so on

Signed-off-by LiMing Wu <19092205@suning.com>
@wulmx
Copy link
Author

wulmx commented Jan 31, 2020

Can you rebase the branch, please. It currently has merge conflicts with master :)

OKI have rebased it.

brauner pushed a commit to brauner/lxcfs that referenced this pull request Feb 27, 2020
dirty/writeback  ... and so on

Closes lxc#315.
Signed-off-by LiMing Wu <19092205@suning.com>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants