Skip to content

net.core.dev_weight monitor #15

@daliang111

Description

@daliang111

is there any way to monitor the dev_weight, /proc/net/softnet_stat have no info about dev_weight.
like the kernel code, no way to monitor if dev_weight is to small?
void __qdisc_run(struct Qdisc q){
int quota = dev_tx_weight; // max send package num
int packets;
while (qdisc_restart(q, &packets)) {
/

* Ordered by possible occurrence: Postpone processing if
* 1. we've exceeded packet quota
* 2. another process needs the CPU; */
quota -= packets;
if (quota <= 0 || need_resched()) { //quota is <=0, next softirq and break
__netif_schedule(q);
break;
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions