From owner-freebsd-questions@freebsd.org Tue Jan 10 02:55:27 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 A5A0FCA8041 for ; Tue, 10 Jan 2017 02:55:27 +0000 (UTC) (envelope-from bycn82@gmail.com) Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0:400c:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E42413A9 for ; Tue, 10 Jan 2017 02:55:27 +0000 (UTC) (envelope-from bycn82@gmail.com) Received: by mail-vk0-x236.google.com with SMTP id r136so14632137vke.1 for ; Mon, 09 Jan 2017 18:55:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=8ulu6yV1gUdM5JOT7BPbj7+Fc1E33KXE3RrZOkxsF0s=; b=BncqsW9Ih/hEZNfmIW8YcgR/MGwIlRJ8Kh2HQj58ok6Ia1zkheqIYXRe6h2DPcywgi rWSxLicwcYjXxTbgSw6rlFA9E2WMMq6LHkQijaTbw/6vs+XWPogMag6ySvhcUGUExEuV cocEZbUOhpeGb6+bR28xzXHBPutLxeQToMkP2le3KGmpMKAVHq5XbGGgw4cnv9+cIqPh WDiPeyBKvX93/DQVO2utOYHeF+GJWySzK9qRB2jhrM2og0xfjLvj+AvIvv9R6b2EHmAK glnz5YJICVN6SfZ2yr/WpRlKAKNtGT9QdfPPAUHHLYd9nMZtwAIvozTEsoia/D37FVW5 cXmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=8ulu6yV1gUdM5JOT7BPbj7+Fc1E33KXE3RrZOkxsF0s=; b=eFAf6qMmrQ0zB+pDJSrGYSVjKe/X3iHkwgB6WcDaLYnSnMyJBqYtfu0bWtgqIiBr29 AoKEzI7RlCWdHaP3ZQKbVHQfaiVLXyngSBibbmGgxeQvkCPBzKB7OHEQLZydMt7Ml5MQ FqM1GD2YykUhzR5yjMRsDH0a079lmo77Ni9aPZwPh9I6Q/vYjKKP3iA+dRlxDyiPka34 +kEVCJHZFgt99r+fOG5MSc+bOYlUHoMBwVhgboHoWln1wdwQQcM7YBvaNxfbJ4O6mX99 XaOaEjQje5Qf8FRdLr/kFbE6tu91hTYNip1Myktfx/GpXLnZWGosBfgUTJVZQrLRhSQy AH0A== X-Gm-Message-State: AIkVDXLbPAzD80yiTacsqFe+J2/Ns/SppbYJzlU4z7NTJxxXsBp5NJlrZGpfOXhBJMIMYXi10pAaOtKhVjXg0Q== X-Received: by 10.31.214.7 with SMTP id n7mr438810vkg.36.1484016926552; Mon, 09 Jan 2017 18:55:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.94.132 with HTTP; Mon, 9 Jan 2017 18:55:26 -0800 (PST) Reply-To: bycn82@dragonflybsd.org In-Reply-To: References: From: Bill Yuan Date: Tue, 10 Jan 2017 10:55:26 +0800 Message-ID: Subject: Re: /tmp/swap is causing my CPU busy To: Warren Block Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Tue, 10 Jan 2017 02:55:27 -0000 I =E2=80=8Bt is inside my dev environment, but I want to know what it is.=E2= =80=8B On 10 January 2017 at 01:04, Warren Block wrote: > On Tue, 10 Jan 2017, Bill Yuan wrote: > > Hi, >> Need support here. I just noticed my machine is busy and a process is th= e >> 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 loo= ks > fishy. >