-
Notifications
You must be signed in to change notification settings - Fork 502
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
net.core.dev_weight monitor #15
Comments
dev_weight = net.core.netdev_budget The structure of the /proc/net/softnet_stat file is typically as follows (as of the latest Linux kernel versions): Each field is presented in hexadecimal format. Here's what these fields usually represent:
The time_squeeze field is particularly important if you are interested in how often the netdev_budget is insufficient for processing all packets in the queue during one softirq call. If this value is high, it may indicate that the current net.core.netdev_budget is too low for the current load and should be increased to improve the performance of the network subsystem. |
what is different between net.core.netdev_budget and net.core.dev_weight,and is any way to moniotr if dev_weight is too small ?
and i want to monitor whether dev_weight is suitable,if dev_weight is too small ,which monitor metric can show it? |
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;
}
}
}
The text was updated successfully, but these errors were encountered: