From owner-freebsd-net@freebsd.org Tue Apr 17 04:46:00 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3EA3FA4DD5 for ; Tue, 17 Apr 2018 04:46:00 +0000 (UTC) (envelope-from niels@kobschaetzki.net) Received: from hatchetman.psychedelicpirate.com (unknown [IPv6:2001:1560:a000:2:49bf:3916:e713:6ddd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F0556EA4A for ; Tue, 17 Apr 2018 04:46:00 +0000 (UTC) (envelope-from niels@kobschaetzki.net) Received: from hatchetman.psychedelicpirate.com (localhost [127.0.0.1]) by hatchetman.psychedelicpirate.com (OpenSMTPD) with ESMTP id 685441e8; Tue, 17 Apr 2018 06:45:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=kobschaetzki.net; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=C8Zazs+KbXwYm+DJ9ND8awmIqgs=; b=e9mdLoImm2mp+Jda59 ccRByqzazBaaWrwdg2Uz0DHqKg9/WppMzU8kqIFpYGTkAw+t1JgVN/EYJ7cfoF8l g84HawGWN2YFcbAXkXWZXxLHjGVFgwjCwqT5xyeENl+oi8JQ519qIVNWW2NBFA// hWSKVmjHfmyb+ub9rM3lV+Sdg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=kobschaetzki.net; h=subject :to:references:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; q=dns; s=selector1; b=A oWCBMh4e22qxU6qRKTfjwQQzpkX5uv6KwCPeu9QL11DEt83AZDuVO5JEX6gcXznR nQh7Rn9xX56s3nUf2SETHljSUKy4FaItnFficjcxfPfd/g35ZB6LvixCQb6Sf6R4 2UPirzRdaHx/tSAVJq58I4vTj630l3dB3/QGSLIAxM= Received: from hatchetman.psychedelicpirate.com (localhost [127.0.0.1]) by hatchetman.psychedelicpirate.com (OpenSMTPD) with ESMTP id d829fd0b; Tue, 17 Apr 2018 06:45:50 +0200 (CEST) Received: from netcat.fritz.box (officevpn.InterDotNet.de [213.73.110.60]) by mail.kobschaetzki.net (OpenSMTPD) with ESMTPSA id f965aa29 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Tue, 17 Apr 2018 06:45:50 +0200 (CEST) Subject: Re: High rate of NFS cache misses after upgrading from 10.3-prerelease to 11.1-release To: Rick Macklem , "freebsd-net@freebsd.org" References: From: =?UTF-8?Q?Niels_Kobsch=c3=a4tzki?= Message-ID: Date: Tue, 17 Apr 2018 06:45:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 04:46:01 -0000 On 04/17/2018 01:03 AM, Rick Macklem wrote: > Niels Kobschaetzki wrote: > [stuff smipped] >> I just checked the code to see if I can figure out where exactly I have >> to put the printf(). And then I saw that there are ifdefs for >> NFS_ACDEBUG which seems to be a kernel option. When I add NFS_ACDEBUG in >> the config-file for the kernel, the build fails with an > I don't have sources handy right now, but you can probably just put a line > like: > #define NFS_ACDEBUG 1 > at the top of the file /usr/src/sys/fs/nfsclient/nfs_clsubs.c ok > After building/booting the kernel "sysctl -a" should have a > vfs.nfs.acdebug > in the list. Set it to "1" to get the basic timeout info. > >> /usr/src/sys/amd64/conf/ACDEBUG: unknown option "NFS_ACDEBUG" >> >> I looked in sysctl.h and there it isn't defined. Do I do something wrong >> or did this sysctl-tunable got lost at some point in time? >> Can I just use this code by removing the ifdef for getting information? >> >> Sorry, my C is not really existent, thus I have to ask :/ >> I would remove the ifdefs and the "if (nfs_acdebug …)" > This would work, too, rick That worked, I had the kernel running yesterday. I solved now finally my problem after two weeks and it wasn't the NFS. I just got derailed from the real solution again and again from some people, thus I didn't look in the right place. The cache misses are gone now, the application performs now faster than on the other servers. Thanks so so much for your help. Niels