Messages in this thread | | | Subject | Re: /proc/meminfo values | From | Andreas Unterkircher <> | Date | Mon, 22 Dec 2003 16:34:38 +0100 |
| |
Am Mon, den 22.12.2003 schrieb Rob Love um 16:31: > 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.
Ok, i'm unterstand :) I will simple multiply the proc values with 1024 when i want to use them with the cricket-snmp-collector. this seems to be exactly enough - i only want to know - thanks rob and rik for the info!
greetings, andi
> > Rob Love > >
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |