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 DBEBC80726 for ; Fri, 2 Oct 2026 21:28:19 +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 692LR8iw026233; Sat, 3 Oct 2026 00:27:09 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 692LR8iw026233 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="oGqkM1CC" Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 692LQkHO026185 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Sat, 3 Oct 2026 00:26:46 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 692LQkHO026185 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-48b02e93a1eso202098f8f.1 for ; Fri, 02 Oct 2026 14:26:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBwy+g5NUt1jddgZGi7gP0aDVxhzcYQ/STpvRGf0CRrU8qQy50jPmvew20iqY56gAa15HsCghw==@openvz.org X-Gm-Message-State: AFq9FYL6a4b0L3D/ammKSmmmtGwIH0iGbaxikJjvQdhzD7uCY1aZwWyV Yvio2marLjKtBm08vnnJ4019nELg34AZYeCCuj8uTqnmzvrcC3ez7WZ7L7nEthz5vsTyxRtBifu eF3YT7/ugpSe/cZ5Msx9+oYuVlJSVKXpgnMDj68FLFzTo9yvTNDkIIg== X-Gm-Gg: AYBFou2/he4HbgxTuqD2F9aV9rYG/MBJKYFrzjuNPDvSiDLluNENOpIS5kISCoh5+ML 7zriqOB3nGgcxBAi88G2Or3SdZTqS4ALvhTWFCUJaVtJ2qPyLszvuJL9OwCZUOze+N+5QtCe//L GNqDm8/JfbmLQ6e3LS4r6p8Ix+ttA0YjAyxj3iOsooDHADKUcDewmqFoDIqMVergrc87YnIWkuK T5d7JX61yUQMLsakKFJGlognroqRb/IgiHjIYiFTnoZmRZmabMguz/4va+NB1n4pBcbBrItVtaE h9j1j9WwjhPdgBiSjaumFTaLJNU9PG+6kgCiWWG7J1vMVsw888nkwd3kB5JGHsa+zJPxVlw9mfs drgoNpZJwEGfzkTAcc0Gt9ZCIlyD83A== X-Received: by 2002:a05:6000:4b0b:b0:48b:10af:f85e with SMTP id ffacd0b85a97d-48b12733ef4mr7696343f8f.33.1790976405980; Fri, 02 Oct 2026 14:26:45 -0700 (PDT) X-Received: by 2002:a05:6000:4b0b:b0:48b:10af:f85e with SMTP id ffacd0b85a97d-48b12733ef4mr7696311f8f.33.1790976405057; Fri, 02 Oct 2026 14:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1790976405; cv=none; d=google.com; s=arc-20260327; b=sj+o774gqVs2vQjgLMNcudk4o9ZcIp+ODkTW85UO5nJ853bK1KWXG5jPb3ZCHOC14/ vLEGLFAfI6fDQydnrOYRMRr7Rm88cYLIRzocJWEbsfS9cJ+YPEM1oNLNNvUwL5LVh9Eu hfv9/+EBDO+q5TfrCtoICfehLbHp6cYurQTy5nFsGAViKzczpKLDmKR1irItk7I+itDi 7QRKRQTMnEroJ3gFvfrrNh/+2dUAL0iWUPHAoeTild9tGLq7Hj8ageOp5gUkWsjkVdRN CZKafdy2Imwm8TjZaaJSCF98/y8k70JJjhWhPzc54s9n5G1xWdLUlsSArMZ7wyld+TTL UPBw== 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=VJjl+E05vBWW2a1z/OgeBXTfgerqzUH6Om3T5vle3RI=; fh=vUECVpjOjIdz431s8bRiKYBdScEDOVhPZlDu2AQ+txg=; b=onXRe7C5nmZdouCsvJ05RGcSkZZ7ZGrI0A/Sec8Q1D1cDoegFyx6lc5mUiHGENdQ5c vgayWJ+0+nMhprwHXVNiOEKxZnKokHmCv3kW9JEtarMuZ5zl71gF1jp5mqnLojqSAYkX VAItGKyi6Nu+GCs066YYu2MeXyMgIFYfSPHoX9ZqkAZmH7fsB9iukzfPOwv2nJHY8+BO MhJ5rstlbtTs6F1eAObVXDeh9Hj2xMzqe+nM/7lRJDuyDgH/OwOGAp5EICQM3Mc0PYdB RhfT75Bz96cgM3Ibe+IPMCbsdpdcsmqZRF2cFEQn0+vzICGUAO3fx/fINTheMSOTGzVW C5jg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=oGqkM1CC; 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-48b5b41e125si6077437f8f.211.2026.10.02.14.26.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2026 14:26:45 -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=oGqkM1CC; 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=VJjl+E05vBWW2a1z/OgeBXTfgerqzUH6Om3T5vle3RI=; b=oGqkM1CCI2+Wl93Guj4 m8NAmlsjPcV0ehuF/0uBprNonrjTYrt0Jf+W6l3R2U8S1tkYYKZAELZyjVdvgclkQH+++wTDpXq7y ejo43DWfDCVb/vRUBEYh8crjKOtnNltar4s3PxT044jHGUZgMvafyk51NSRwEb0Uu5XX18eN6HCJX QE+9Qq1mZYTpZcxZci+m5avfW6TjO6FKTqCkHCSg+uclA4c7aGGpmA9p5kJJlo3PtNXZqKdmWISLk vHIIGQq1S84GxunMIKECSIAigsooyiF/dSMmYiChvzsDGx+iCBvsQrTBRUJaxSGYXL8uoAJqiQgmb Pw5cKaX9UEUWqMQ==; 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 1xCkj3-00GcBK-1q; Fri, 02 Oct 2026 23:26:40 +0200 From: Vladimir Riabchun Date: Fri, 02 Oct 2026 23:26:15 +0200 MIME-Version: 1.0 Message-Id: <20261002-ve-printk-irq-v1-6-cb55896d455c@virtuozzo.com> References: <20261002-ve-printk-irq-v1-0-cb55896d455c@virtuozzo.com> In-Reply-To: <20261002-ve-printk-irq-v1-0-cb55896d455c@virtuozzo.com> To: Konstantin Khorenko , vasileios.almpanis@virtuozzo.com X-Mailer: b4 0.14.3 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 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 | 3 +-- 3 files changed, 5 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..c7d5e6df50c2 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -520,8 +520,7 @@ 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); + 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