Подскажите где прочитать, какаие цифро что означают.
cat /proc/net/netfilter/nfnetlink_queue
0 2074 259 2 65535 0 0 104646904 1
Я так понимаю в этот файл пишется очередь пакетов, но вот какая цифра и что значит не понятно.
Рискну предположить, что 2074 это средняя, 259 текущая, 65535 максимум. Но вот остальные, не понятно.
Описание значений в файле nfnetlink_queue (proc/net/netfilter/nfnetlink_queue)
Модераторы: SLEDopit, Модераторы разделов
-
IMB
- Сообщения: 2567
- ОС: Debian
Re: Описание значений в файле nfnetlink_queue
Исходники ядра предлагать?
В частности net/netfilter/nfnetlink_queue.c:
Но это, как Вы понимаете, предположение.
В частности net/netfilter/nfnetlink_queue.c:
Код: Выделить всё
...............................
struct nfqnl_instance {
struct hlist_node hlist; /* global list of queues */
atomic_t use;
int peer_pid;
unsigned int queue_maxlen;
unsigned int copy_range;
unsigned int queue_total;
unsigned int queue_dropped;
unsigned int queue_user_dropped;
atomic_t id_sequence; /* 'sequence' of pkt ids */
u_int16_t queue_num; /* number of this queue */
u_int8_t copy_mode;
spinlock_t lock;
struct list_head queue_list; /* packets in queue */
};
.....................................................
static int seq_show(struct seq_file *s, void *v)
{
const struct nfqnl_instance *inst = v;
return seq_printf(s, "%5d %6d %5d %1d %5d %5d %5d %8d %2d\n",
inst->queue_num,
inst->peer_pid, inst->queue_total,
inst->copy_mode, inst->copy_range,
inst->queue_dropped, inst->queue_user_dropped,
atomic_read(&inst->id_sequence),
atomic_read(&inst->use));
}..........................Но это, как Вы понимаете, предположение.
Спасибо сказали:
-
Voler
- Сообщения: 498
- ОС: Fedora
Re: Описание значений в файле nfnetlink_queue
Спасибо
Each line contains information about a specific queue:
* queue_num: id of the queue
* peer_pid: pid of process handling the queue
* queue_total: number of packets waiting for a decision
* copy_mode: indicate how userspace receive packets
* copy_range: size of copy
* queue_dropped: number of items dropped by the kernel because too many packets were waiting a decision. It queue_total is superior to queue_max_len (1024 per default) the packets are dropped.
* queue_user_dropped: number of packets dropped by userspace (due to kernel send failure on the netlink socket)
* id_sequence: sequence number of packets queued. It gives a correct approximation of the number of queued packets.
* use: internal value (number of entity using the queue)
Each line contains information about a specific queue:
* queue_num: id of the queue
* peer_pid: pid of process handling the queue
* queue_total: number of packets waiting for a decision
* copy_mode: indicate how userspace receive packets
* copy_range: size of copy
* queue_dropped: number of items dropped by the kernel because too many packets were waiting a decision. It queue_total is superior to queue_max_len (1024 per default) the packets are dropped.
* queue_user_dropped: number of packets dropped by userspace (due to kernel send failure on the netlink socket)
* id_sequence: sequence number of packets queued. It gives a correct approximation of the number of queued packets.
* use: internal value (number of entity using the queue)