From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (unknown [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 53FA5802A5 for ; Sun, 11 Oct 2026 22:54:28 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 69BMrHVv009427; Mon, 12 Oct 2026 01:53:18 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69BMrHVv009427 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="fROhF68z" Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 69BMqrnp009368 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Mon, 12 Oct 2026 01:52:53 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69BMqrnp009368 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-4887e5afd67so1134245f8f.3 for ; Sun, 11 Oct 2026 15:52:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBxvZ0N37jDhazHS8DDnrelg8hLg7Kqt7PkECmP2RFmngO95HsC6qrtkppUoKCTl1nYEUndkDg==@openvz.org X-Gm-Message-State: AFq9FYIma6S9TCyYIWMrh3ofCNCl1/VmHGYRXfg2PEgt9ZHXE8Oxfkbp nrxVYaf/mN1oJdEEXlUXMrDmZiv5MTo+sF27/NK18JYq4EU2KBdyZs+2Tc7/b9Ts4pYdg125HYK lW9QA3JY+wyMhB5nS5pm21dgCqsgS8huAlupT7wgSSd61+/Ed0YwPXw== X-Gm-Gg: AYBFou3drTWXroyjlKyxpqCy4QN4HiaGMPINskmk2dMqXTw0nS1HKLqnUx3a5AxYNit kwsbhtXlHwzmcgpLv0ykIpgsaA4hdYmX77iBiITglz9FSH/OEgpc38NXcE7ZcV2qo/e1neK0bBE gZBt7HVDRuFm+BTAPtENDfLpBkRaHg6eW65JUhQTQj2DOM8g1q/2aypI4dR8taYUZOPrjeo3wlD Cnj0nxDukXL0uLIX5Gn+QJenkcC1w8C3aqA+SjMXxzk2mqzR0NxrqRf1AlxiFAIzUwQifw9bbDn ofHCCFzYEnoS8DdkyYcO2sHphgiLVgXaVTncF/8ZG4DpAIxTacitRRRhnT8cZVRpX7BCDXx5lSC p2MsupgB0Kx+vkq8QcuzVDPv0JVlg X-Received: by 2002:a05:6000:2906:b0:487:27f9:834 with SMTP id ffacd0b85a97d-48dbaaed8cbmr12892459f8f.41.1791759173029; Sun, 11 Oct 2026 15:52:53 -0700 (PDT) X-Received: by 2002:a05:6000:2906:b0:487:27f9:834 with SMTP id ffacd0b85a97d-48dbaaed8cbmr12892442f8f.41.1791759172598; Sun, 11 Oct 2026 15:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791759172; cv=none; d=google.com; s=arc-20260327; b=LNSSsWOZVXQDneGGoaYk9kzrwxjpQD1i/yEpz2pAniHxaKVynjIrFamHLwBBtNY6p+ KTzlQskrK8+offLIa8F4zLvAderfFBuAbroMql79giHm0Gm+i+B+8qbE5thUEmhzSrtI cBL9Q49TIviYQbxWj5NBf81EjmnGpG6KHFTdiPA3rf9HY7ejl7S54KigmiQvgeG/ASzG m1N5EwACLZtadPw6fcuSGvgWEeuP3vulk1HRA8hLuEhBcoQCwFYDVF5BoTeRgia+MpxS zsSKH1cEEqdlGlr1iBRTyWtPPPIxQdy/x41Hw08Lw9Yc5bB+a3pzoqSTobI4HfKHMq24 SObw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=7H+OFNXVW2x4ABQPDHAzZpnIU6DjCTxjxuvDkp1gdsI=; fh=eCOFrBZAqsL6jjT8ApulcBPCLrgIlXlNCEpSn7Ap5O8=; b=bv0xTFakC1uEsmzuxRBP/ydr+hDEDkFmisOJBcW6EL0iOSUZRPMqQ+pdAI6AZg+PG7 S6pCA/5jCgDIiyt1r9B4zxquODvrsXEObBdZvHWyIH9CLERzuMd6ajjsDgNd/xvacmiD UVphVOXRO8j1wAM4c/BS2oscgSdH0MNLA55D+BCDuEbXI0/gHxK8R+/m/8Lt71yHiZgA l8AWwr7/5+sargGiSEKhsq+6Cejt9fJMRxh5tM7OUOWkCKvDqR3j2pXZtngrc5ZMeNhl vk6ojjZJfcbt3b4NDcdHSUFKbor1fcunY9IdQ0FcpIvFB2CpkivTj+JqWNU78FWREkpb YdKQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=fROhF68z; spf=pass (google.com: domain of vladimir.riabchun@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vladimir.riabchun@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48db946557dsi14462192f8f.7.2026.10.11.15.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2026 15:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of vladimir.riabchun@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=fROhF68z; spf=pass (google.com: domain of vladimir.riabchun@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vladimir.riabchun@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Message-Id:Content-Type:MIME-Version:Subject:Date :From; bh=7H+OFNXVW2x4ABQPDHAzZpnIU6DjCTxjxuvDkp1gdsI=; b=fROhF68zxWL3aNmUvpn r7u4TnG+F8qcOPfi/1D+kZto82d1oIYTIXi/zCFsQVFz2OvvXXsy+TgxQQelagebSpFenYdzDfu2/ 9QrNj6gDISuFWBLNXRROnxhnHSok5MzicONcPYdIbrY4mHkrgxVLI68baqWBZjwmYaHdvWmEW3UDh 3tMKrHYv99QR7IoAW6S8lXpCy582HHqNahrMzsfkSjPgDZcMlFIsM0+zNIC792xgTCGaNK0Z+6ISf R04hRM8nbhSuNLFIwQMbwYIKV5Sv2oq4PeTMYmKxsfmzdl2NkYPZ8F+R/aVFWoM0zRPhETtO5HEV3 VSs6/jordZPxDng==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=192.168.1.87) by relay.virtuozzo.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xG2M7-002SCD-0o; Mon, 12 Oct 2026 00:52:44 +0200 From: Vladimir Riabchun Date: Mon, 12 Oct 2026 00:52:33 +0200 MIME-Version: 1.0 Message-Id: <20261012-ve-printk-irq-v3-6-efc95fd5c78a@virtuozzo.com> References: <20261012-ve-printk-irq-v3-0-efc95fd5c78a@virtuozzo.com> In-Reply-To: <20261012-ve-printk-irq-v3-0-efc95fd5c78a@virtuozzo.com> To: vasileios.almpanis@virtuozzo.com, ptikhomirov@virtuozzo.com, Konstantin Khorenko X-Mailer: b4 0.14.3 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 v3 6/6] ve: add neigh_tbl failcounter X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org Count hits of the per-VE neigh_tbl limit in ve.failcount. This one was delayed due to a high risk of IRQ-context hits, when destination VE can't be obtained from get_exec_env. https://virtuozzo.atlassian.net/browse/VSTOR-135520 https://virtuozzo.atlassian.net/browse/VSTOR-146839 Feature: per-ve failcounters Feature: ve printk Signed-off-by: Vladimir Riabchun --- include/linux/ve.h | 1 + kernel/ve/ve.c | 3 +++ net/core/neighbour.c | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/linux/ve.h b/include/linux/ve.h index 946df4eebe89..44e04dc75823 100644 --- a/include/linux/ve.h +++ b/include/linux/ve.h @@ -97,6 +97,7 @@ struct ve_struct { atomic_t arp_neigh_nr; atomic_t nd_neigh_nr; + atomic_t neigh_tbl_failcount; unsigned long meminfo_val; /* diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c index 51cc635be2e2..35fad9658149 100644 --- a/kernel/ve/ve.c +++ b/kernel/ve/ve.c @@ -118,6 +118,7 @@ struct ve_struct ve0 = { .arp_neigh_nr = ATOMIC_INIT(0), .nd_neigh_nr = ATOMIC_INIT(0), + .neigh_tbl_failcount = ATOMIC_INIT(0), .mnt_avail_nr = ATOMIC_INIT(INT_MAX), .mnt_max_nr = INT_MAX, .mnt_failcount = ATOMIC_INIT(0), @@ -834,6 +835,7 @@ static struct cgroup_subsys_state *ve_create(struct cgroup_subsys_state *parent_ atomic_set(&ve->arp_neigh_nr, 0); atomic_set(&ve->nd_neigh_nr, 0); + atomic_set(&ve->neigh_tbl_failcount, 0); ve->mnt_max_nr = MNT_MAX_NR_DEFAULT; atomic_set(&ve->mnt_failcount, 0); atomic_set(&ve->mnt_avail_nr, MNT_MAX_NR_DEFAULT); @@ -1098,6 +1100,7 @@ static const struct ve_failcount_entry { VE_FC_ENTRY(mnt), VE_FC_ENTRY(netif), VE_FC_ENTRY(bpf_prog), + VE_FC_ENTRY(neigh_tbl), #ifdef CONFIG_AIO VE_FC_ENTRY(aio), #endif diff --git a/net/core/neighbour.c b/net/core/neighbour.c index f90deb17fb25..6c2fc778a8ab 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -520,8 +520,9 @@ static struct neighbour *neigh_alloc(struct neigh_table *tbl, (glob_entries >= READ_ONCE(tbl->gc_thresh2) && time_after(now, READ_ONCE(tbl->last_flush) + 5 * HZ))) { if (!neigh_forced_gc(tbl, ve) && entries >= gc_thresh3) { - net_info_ratelimited("%s: neighbor table overflow!\n", - tbl->id); + net_info_ratelimited("%s: neighbor table overflow for ve %s!\n", + tbl->id, ve_name(ve)); + ve_failcount_inc(ve, neigh_tbl); NEIGH_CACHE_STAT_INC(tbl, table_fulls); goto out_entries; } -- 2.52.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel