From owner-freebsd-questions@freebsd.org Mon Jan 9 17:04:26 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64A95CA78C8 for ; Mon, 9 Jan 2017 17:04:26 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3969416A2 for ; Mon, 9 Jan 2017 17:04:26 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v09H4GCT039160 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 9 Jan 2017 10:04:16 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v09H4Gg0039157; Mon, 9 Jan 2017 10:04:16 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 9 Jan 2017 10:04:16 -0700 (MST) From: Warren Block To: bycn82@dragonflybsd.org cc: FreeBSD Questions Subject: Re: /tmp/swap is causing my CPU busy In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.1 (wonkity.com [127.0.0.1]); Mon, 09 Jan 2017 10:04:16 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2017 17:04:26 -0000 On Tue, 10 Jan 2017, Bill Yuan wrote: > Hi, > Need support here. I just noticed my machine is busy and a process is the > root cause, I am not familiar with the memory/SWAP, Can someone please help > to take a look? any info is required? please let me know. > > #top > 52 processes: 1 running, 50 sleeping, 1 zombie > CPU: 3.5% user, 0.0% nice, 0.6% system, 0.0% interrupt, 95.9% idle > Mem: 53M Active, 997M Inact, 133M Wired, 44M Buf, 791M Free > Swap: 2100M Total, 2100M Free > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU > COMMAND > 25592 root 10 25 0 778M 9272K uwait 3 0:38 19.02% > .swap > 25599 root 1 20 0 7416K 2596K CPU0 0 0:00 0.11% top > > #ps -axd | grep swap > 25481 0 S+ 0:00.00 | | `-- grep swap > 22927 - Ss 172:10.74 |-- /tmp/.swap > > #uname -a > FreeBSD NetGate1 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu > Sep 29 03:40:55 UTC 2016 > root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC > i386 That does not look good to me. A hidden file named ".swap" that is *running*, and as root? I would immediately disconnect that machine from the net and then check to see if that's a compromise, because it sure looks fishy.