From owner-freebsd-current@freebsd.org Wed Jan 20 14:17:38 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A51CB4F7196 for ; Wed, 20 Jan 2021 14:17:38 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DLSKG38dNz4mj8 for ; Wed, 20 Jan 2021 14:17:38 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 6A7084F7385; Wed, 20 Jan 2021 14:17:38 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6A35C4F7384 for ; Wed, 20 Jan 2021 14:17:38 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DLSKF5LfBz4mVl for ; Wed, 20 Jan 2021 14:17:37 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-io1-xd2d.google.com with SMTP id z22so20446325ioh.9 for ; Wed, 20 Jan 2021 06:17:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=OPAu87kLA40E4nzXq0tmDeIX5L9ecdeyHtQyLPkfUgg=; b=Zx57LlQWfkBX46UFYeaL9n842VuqFAYivDM7CLATZBWVy1kGAKvmYa0hU7ejitpOes VkbqYUhRrrUywJjubGA8XUdrVs1WHwFR0qxa8jOmJ3DqLz634vQEahO5bZiXm4TFdwTt bexA81TXZWWK5B/LdA+ol1W57+PltIgwmlRwudmCwV+WCmRtJQQO28H22+FxaYN5oNBS fACCPNYv05ZJ4HyhNt4mgnW9V1d/btc4lBPUcDCaI+XdFNPKNUjHqLlGwCNkq91VITnS 1Tk7nqIL+7e9RJRGL55QPsydVuVwW32zYdCETqXsjoFIm1mxgpLzU6V2el7QigUj3wcl pBtQ== X-Gm-Message-State: AOAM53369eGtQI4KXHYIoDhgG6Z8FPR9K/YbUeIWpvBuRwIr5KOw+QuC Eu62jQf/HHdbEUMh5tpYUctURTzQNZW3TA== X-Google-Smtp-Source: ABdhPJxAEbrenolO0vJEnxX3j3Tza+wSDfqIF3Wwc4SfLy9dzPLVS3g3gP/O/wPKcyoQe7U3O8jTGw== X-Received: by 2002:a05:6e02:b47:: with SMTP id f7mr7741156ilu.96.1611152256588; Wed, 20 Jan 2021 06:17:36 -0800 (PST) Received: from raichu ([142.126.164.150]) by smtp.gmail.com with ESMTPSA id y19sm505467ilk.35.2021.01.20.06.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 06:17:35 -0800 (PST) Sender: Mark Johnston Date: Wed, 20 Jan 2021 09:17:33 -0500 From: Mark Johnston To: Santiago Martinez Cc: FreeBSD Current Subject: Re: VM UMA counters. Message-ID: References: <0996195a-6d7f-b058-e95c-b2446688940f@codenetworks.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0996195a-6d7f-b058-e95c-b2446688940f@codenetworks.net> X-Rspamd-Queue-Id: 4DLSKF5LfBz4mVl X-Spamd-Bar: / X-Spamd-Result: default: False [-0.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::d2d:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::d2d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2d:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2021 14:17:38 -0000 On Tue, Jan 19, 2021 at 12:44:14PM +0000, Santiago Martinez wrote: > Hi there, sorry to ask this as it might be a silly question... > > Since a few weeks im seeing random locks on application and sometimes > when using truss it show resource temporally unavailable. > > Now, checking random things, i see that the > vm.uma.256_Bucket.stats.fails counter is increasing while the other are > not (at least for now). > > Here goes the output: > > vm.uma.256_Bucket.stats.xdomain: 0 > vm.uma.256_Bucket.stats.fails: 762142 > vm.uma.256_Bucket.stats.frees: 41935 > vm.uma.256_Bucket.stats.allocs: 42721 > vm.uma.256_Bucket.stats.current: 786 > > root@tucho:/home/smartinez # uname -a > FreeBSD tucho 13.0-ALPHA1 FreeBSD 13.0-ALPHA1 #13 > main-c256107-g7d3310c4fcdd: Tue Jan 19 10:50:12 GMT 2021     > smartinez@tucho:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64 > > My question is, is this the expected behavior? There are situations where bucket allocations must fail to avoid recursing back into the VM. For instance, allocation of a UMA slab may require allocation of a radix node entry from UMA, which may attempt allocation of a bucket, which could trigger allocation of a slab. It's therefore normal to see a non-zero number of failures after booting, but after that the bucket zone's caches are populated and failures should become rare. Failures might also be triggered during severe memory shortages. Could you show vmstat -s from an affected system? Are you using any DRM graphics drivers by any chance?