From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264356AbTLVPbL (ORCPT ); Mon, 22 Dec 2003 10:31:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264382AbTLVPbK (ORCPT ); Mon, 22 Dec 2003 10:31:10 -0500 Received: from peabody.ximian.com ([141.154.95.10]:34259 "EHLO peabody.ximian.com") by vger.kernel.org with ESMTP id S264356AbTLVPbI (ORCPT ); Mon, 22 Dec 2003 10:31:08 -0500 Subject: Re: /proc/meminfo values From: Rob Love To: unki@netshadow.at Cc: linux-kernel@vger.kernel.org In-Reply-To: <1072104601.1165.33.camel@winsucks> References: <1072104601.1165.33.camel@winsucks> Content-Type: text/plain Message-Id: <1072107066.3318.17.camel@fur> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-8) Date: Mon, 22 Dec 2003 10:31:06 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2003-12-22 at 09:50, Andreas Unterkircher wrote: > cat /proc/meminfo > total: used: free: shared: buffers: cached: > Mem: 244191232 238395392 5795840 0 2732032 138403840 > Swap: 509923328 147443712 362479616 This view is gone. Use something like free(1) or a custom script to recreate it. > but with 2.6 it looks like they have been removed. where can i get the > exactly free memory (+ swap) from the kernel so i havn't to use the > kb-values which i get back from /proc/meminfo? > > i try to check the source good from "free" (with the -b option it > returns the bytes-value) which seems to simple multiply *1024 to > the kb values. But everything is page granularity already, which is 4KB on x86. Going to bytes would not gain you anything. Rob Love