From owner-freebsd-i386@freebsd.org Tue Oct 6 08:47:52 2015 Return-Path: Delivered-To: freebsd-i386@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 1F94A9B6C89 for ; Tue, 6 Oct 2015 08:47:52 +0000 (UTC) (envelope-from m4rtntns@gmail.com) Received: from mail-oi0-x233.google.com (mail-oi0-x233.google.com [IPv6:2607:f8b0:4003:c06::233]) (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 A083A8BB for ; Tue, 6 Oct 2015 08:47:51 +0000 (UTC) (envelope-from m4rtntns@gmail.com) Received: by oiww128 with SMTP id w128so104970192oiw.2 for ; Tue, 06 Oct 2015 01:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HQQI677lPglhylPHk9oVujYMoU/tJvjVDM+5pfUeF6A=; b=UHdgff05tonGMMTvC2N4Ob4QAkfd2b2lYBoxm7vOxo74VbZdGxC5hcY6nW4daC1WZh rKFN248iEh7WfwyAUgc+NII4Z1vlIII9pGRya0zDirrwUedZKi+qTEHQyy1OlkXqQ1Z0 WWqMm6G1yzV0ogWjIsrivwvYlEQ5N9wOnLvJ5/86ezspbIL95LQlh/co2+dnmmujLU70 JNSiX3iK7r6l/uRkTWe+Ti4Fx4/1VRbLJYzW7C28/5NAubRWqQqtVOTBiD96qzLfO/Ma UETWKc4n4Wc0hNj106yia80sY3z2/Irh6hQvz0pKWrpndAokeTc7kVcTgNbg5NOFpEA4 Fqfw== MIME-Version: 1.0 X-Received: by 10.202.228.210 with SMTP id b201mr19132958oih.100.1444121270777; Tue, 06 Oct 2015 01:47:50 -0700 (PDT) Received: by 10.202.222.134 with HTTP; Tue, 6 Oct 2015 01:47:50 -0700 (PDT) Date: Tue, 6 Oct 2015 11:47:50 +0300 Message-ID: Subject: questions regarding "Inactive", "Cache" and "Buffers" memory From: Martin T To: freebsd-i386@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 08:47:52 -0000 Hi, FreeBSD "top" utility categorizes memory into "Active", "Inact", "Wired", "Cache", "Buf" and "Free" sections. For example: Mem: 125M Active, 42M Inact, 51M Wired, 17M Cache, 34M Buf, 2720K Free Swap: 512M Total, 512M Free Those sections should have following meanings: Active: Memory currently being used by processes. Inactive: Memory that was used by processes that are no longer running, but is cached since it may be used again. Wired: Memory in use by the FreeBSD kernel. This memory cannot be swapped out. Cache: Memory being used to cache data. Can be freed immediately if required. Buffers: Disk(HDD/SSD) cache. Free: Completely free and ready to use. Questions: 1) Is it possible to flush "Inactive", "Cache" or "Buffers" memory? Or can this be done only be kernel automatically? 2) What is the difference between "Cache" and "Buffers" memory? thanks, Martin