From owner-freebsd-questions@freebsd.org Wed Feb 20 18:43:55 2019 Return-Path: Delivered-To: freebsd-questions@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 4FF6C14FC157 for ; Wed, 20 Feb 2019 18:43:55 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A6CB68D9B3 for ; Wed, 20 Feb 2019 18:43:54 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: by mailman.ysv.freebsd.org (Postfix) id 66BAD14FC156; Wed, 20 Feb 2019 18:43:54 +0000 (UTC) Delivered-To: questions@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 2A42414FC155 for ; Wed, 20 Feb 2019 18:43:54 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from smtp1.cretaforce.gr (smtp1.cretaforce.gr [159.69.10.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8AA88D9B2 for ; Wed, 20 Feb 2019 18:43:53 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from server1.cretaforce.gr (server1.cretaforce.gr [138.201.248.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL RSA CA 2018" (verified OK)) by smtp1.cretaforce.gr (Postfix) with ESMTPS id 09BF31FA2F for ; Wed, 20 Feb 2019 20:43:45 +0200 (EET) Received: from [192.168.2.6] (athedsl-127389.home.otenet.gr [85.75.73.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id B98FA27332 for ; Wed, 20 Feb 2019 20:43:44 +0200 (EET) From: Christos Chatzaras Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: df shows wrong usage for tmpfs Date: Wed, 20 Feb 2019 20:43:42 +0200 References: To: FreeBSD Questions List In-Reply-To: Message-Id: <8B8FBF20-B24E-4848-B0EB-AFAE5080BFBD@cretaforce.gr> X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: B8AA88D9B2 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-7.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2019 18:43:55 -0000 Finally was related to jails: /home/www 496G 44G 412G 10% = /home/jail/php56/home/www /tmp 15G 33M 14G 0% /home/jail/php56/tmp /tmpfs 8.0G 108M 7.9G 1% = /home/jail/php56/tmpfs devfs 1.0K 1.0K 0B 100% /home/jail/php56/dev /home/www 496G 44G 412G 10% = /home/jail/php71/home/www /tmp 15G 33M 14G 0% /home/jail/php71/tmp /tmpfs 8.0G 108M 7.9G 1% = /home/jail/php71/tmpfs devfs 1.0K 1.0K 0B 100% /home/jail/php71/dev I restart them and df shows correct result. > On 20 Feb 2019, at 20:31, Christos Chatzaras = wrote: >=20 > Any idea why df shows wrong usage? I restart nginx and mysql and even = when these services are stopped it still shows wrong usage. >=20 > df -h /tmpfs | grep tmpfs > tmpfs 8.0G 1.1G 6.9G 13% /tmpfs >=20 > du -sh /tmpfs > 44M /tmpfs >=20 > fstat -f /tmpfs > USER CMD PID FD MOUNT INUM MODE SZ|DV R/W > www nginx 8662 5 /tmpfs 224 -rw-r--r-- 0 w > www nginx 2706 5 /tmpfs 224 -rw-r--r-- 0 w > www nginx 2706 126 /tmpfs 1466 -rw------- 51809 r > www nginx 2706 133 /tmpfs 2869 -rw------- 641 r > root nginx 99550 5 /tmpfs 224 -rw-r--r-- 0 w > mysql mysqld 68713 5 - 5 -rw------- 0 rw > mysql mysqld 68713 6 - 6 -rw------- 0 rw > mysql mysqld 68713 7 - 7 -rw------- 0 rw > mysql mysqld 68713 8 - 8 -rw------- 0 rw > mysql mysqld 68713 12 - 9 -rw------- 0 rw > mysql mysqld 68713 14 /tmpfs 10 -rw-r----- 3109 w > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"