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

MemoryContention.detect一直返回true? #4

Open
neofang7 opened this issue Aug 17, 2021 · 0 comments
Open

MemoryContention.detect一直返回true? #4

neofang7 opened this issue Aug 17, 2021 · 0 comments

Comments

@neofang7
Copy link

bool detect()
{
timestamp_t now = get_timestamp();
if (now - this->last_time < this->interval)
return false;
this->last_time = now;
vector cpu_cachemiss = this->get_cpu_cachemiss();

    for (int socket = 0; socket < nr_sockets; socket++)
    {
        map<string, MemUsage> vm_memusage = this->get_vm_memuage(socket, cpu_cachemiss);
        SocketMemUsage socket_memusage = this->get_socket_memusage(socket, this->vm_memusage[socket]);
        this->vm_memusage[socket] = vm_memusage;
        this->socket_memusage[socket] = socket_memusage;

        this->push_usage(socket, vm_memusage, socket_memusage);
    }

    DEBUG_LOG(">>> detected...");
    return true;
}

是未完成??

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

1 participant