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 44D7480726 for ; Mon, 12 Oct 2026 08:00:47 +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 69C7xWR2018283; Mon, 12 Oct 2026 10:59:33 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69C7xWR2018283 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="J944+Pby" Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 69C7xQNI018272 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Mon, 12 Oct 2026 10:59:26 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 69C7xQNI018272 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-48c54e690c5so1111267f8f.0 for ; Mon, 12 Oct 2026 00:59:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvByPebKQAHANjO2TxlYuuB4APXowsu65r+lnnZG37zgz50p6ZKzT+YcdsU2jWRZspceRpqoQsQ==@openvz.org X-Gm-Message-State: AFq9FYJUwQ3c7POo6bVWi3L7p6hqWiQV9soE04SlIfuiVxiLw6H8FK1z vq/Qg3fvO/VtjtEJOREZqKH1eJfawwOWc+djj1v+IM/fPMKAFTJdaOdAZFUxPG+NG6WlZXT8MFO tItkvQlNvDNJydNzBw7XpDvQfPjS6QhSOV8Nbb6feU47z4mzWRw6SHg== X-Gm-Gg: AYBFou2feuskr2FmbGmWA14gFUQXwDt8QeeF1SAAEupSqIUWde9Sgb7mJSHDcgwSXHN W1X38WJLLuvuyTx1nOjhayCGnPuM4yPFYlVOEr1fH8b1dS/NHIe7ZwID8FmTSguBZqgyXscm3IE oeEVT9n4leu1OJFtwD+R0KnP0wsO8+KL0G9sObcFq4exXODSp1tiYrwRIpm+OlUa6DwSz9N4Ffn LhjjXksLK1OijEHGnpcrJ41D/TA8K3VwTWYlmS58qd2oMIsnoppdgeqU+CP/ab6+q9nu982+uYN c1H15CMr8I55q1hsi8EyrLidhwqDYhEMjtVdKb9R62ctTza26nY5BUhh7F0qtWZwdmabmQJoCQO ITkirVp1E485HSBRpRnCkqvk8KhwRigc= X-Received: by 2002:a05:6000:46c3:b0:48b:161:ff26 with SMTP id ffacd0b85a97d-48dbacf9b0bmr10078045f8f.29.1791791966540; Mon, 12 Oct 2026 00:59:26 -0700 (PDT) X-Received: by 2002:a05:6000:46c3:b0:48b:161:ff26 with SMTP id ffacd0b85a97d-48dbacf9b0bmr10077957f8f.29.1791791965314; Mon, 12 Oct 2026 00:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1791791965; cv=none; d=google.com; s=arc-20260327; b=gIL/AlC6Unixf3r2ERj830UXK9DLgtlA6hCMDRocSaYB4DyCX5eBhf43+9fCLy8l8x Xvn+xHxFmSbozVZMf5ymWPpeAjPCr2MCiKJ9c620x9hNar+IjgmKYRIMBx+tI7sK8qhC aRNDEK9usDMXwf/7s0sy0kyESb0A1IlLsLMYu+V/w1/o4fZGsjXpyxrMHLHNL0f4jEwn 4DHWXU5xM39UpzPjYegw8/5yaPJ5j4e/KPF1BIqDbZcwaWGkcL49kQyk0vWv5TBU/JSR YmMgpAciWEls2r+fN9v8TuSDEEsPplNt4udrPDqA7DKI+UDnn1EG6d19xfeNdTcvhlTq RwvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:mime-version:dkim-signature; bh=vVeE8rcvfAEfGFDtZE/XE6g/rlobuGEIzNQfnodH1sY=; fh=Q8xrIeKEv9kNt0kBAZ24Zoq+O3GjFEiuW2jIo3+yJG0=; b=JFOVX/+Qb4K6CL4Sll1KYKru1tW+OPx9Ni6et7LP2+CCzdb2VDeBLuXopSMcByvJh3 vy2r3m4p4ZL4l3htJIAWUxPKcOeX8OwUXIPFOKlywk6YgIaxv/xMCwRnfhq9MIg+47Tm RwDzQzKCr01TQWdOZ17ciYu7vM6mTrjPTUdsQNp1Zof9D1NjoBbg1ncn6BHcDpK1tglh kLcllyBy4o8eP5TgkhDj7v93mQ+8Nn426l1eI4qjJizJgWuFLPRho2+XDjzErd81goj4 nOJX9+ZufC6+03+7M99c+KC636ycdoQCJQcMDJyuJuJ3gUjT8cpqFytDgdszDpWBLYsO vEVA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=J944+Pby; spf=pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vasileios.almpanis@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-48db9464fa2si19058468f8f.37.2026.10.12.00.59.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2026 00:59:25 -0700 (PDT) Received-SPF: pass (google.com: domain of vasileios.almpanis@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=J944+Pby; spf=pass (google.com: domain of vasileios.almpanis@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=vasileios.almpanis@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:Date:From:Subject:Content-Type: MIME-Version; bh=vVeE8rcvfAEfGFDtZE/XE6g/rlobuGEIzNQfnodH1sY=; b=J944+PbyUIWw RkSY60xHv7FCHsDGcDiCBJ2mb42INKL5CDXUQTNyx8GQ0Yj5yRPFxegpwX/vdunGpc4zxvIXyBqX9 uCeq3F/iiOaRQA9L2jk0Ewp2F1q8hfgfJYhqSV+8HKuTWDqWWBHfHVvE4zIeuuf6d+cp7lu/kNman ZRfI6qLa3XVhO+Uj3BEZsLXvanWy1SsXCq6CdaPCNmbS/sxy5luzyr4dJv9I261KZqf87nFcNycmx 9Ta/HDoFWOwVFoPNvhE2onF0/RxqmXhYfml0ahQN6Es4rEXUzovr2AS268JBCcRhrgjTc4ob0xCPa gk6RCccp7X4m5ZvtpZYsGg==; Received: from [130.117.225.5] (helo=dev010.ch-qa.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xGAt1-00Cs1e-15; Mon, 12 Oct 2026 09:59:16 +0200 MIME-Version: 1.0 From: Vasileios Almpanis To: Vladimir Riabchun In-Reply-To: <20261012-ve-printk-irq-v3-6-efc95fd5c78a@virtuozzo.com> References: <20261012-ve-printk-irq-v3-0-efc95fd5c78a@virtuozzo.com> <20261012-ve-printk-irq-v3-6-efc95fd5c78a@virtuozzo.com> Date: Mon, 12 Oct 2026 07:59:23 +0000 Message-Id: <179179196327.931154.1346600865078567213.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1791791964; l=2677; i=vasileios.almpanis@virtuozzo.com; s=20260812; h=from:subject:message-id; bh=EHQa3TvrdJnn/dnaAmWq17J2pGOwD0l1XqgrryehrPg=; b=zzt6/ogmhAKTQuUHoxjdkDel9nUHPg+ixAeh3nueNmXCF3V86uD9C8O1xmZnCtbev+a7eVR1C DJmrj2Nu1+zBXmmLxagkfFjrBiT5KTDSOWZdPK2jgo2Hans9W9TmPDf X-Developer-Key: i=vasileios.almpanis@virtuozzo.com; a=ed25519; pk=HhuHDXAcPva9A8zccWEMRsb36reu+y4IVbBjXKxNUjw= X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [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 > > 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)); Here on hosts with more neighbors than the threshold the host will get a message which points to a failcount file it doesn't exist. Maybe only increase failcount in case ve is not super? -- Vasileios Almpanis _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel