[Zrouter-src] ZRouter.org: push to ZRouter profiles/lua_web_ui/files/usr/sbin/...

zrouter-src at zrouter.org zrouter-src at zrouter.org
Mon Sep 24 11:33:18 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/51d48b4d40ce
changeset: 476:51d48b4d40ce
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Mon Sep 24 14:36:20 2012 +0300
description:
Small mem stat utility.

diffstat:

 profiles/lua_web_ui/files/usr/sbin/mem.sh |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r e18ace4cda67 -r 51d48b4d40ce profiles/lua_web_ui/files/usr/sbin/mem.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/profiles/lua_web_ui/files/usr/sbin/mem.sh	Mon Sep 24 14:36:20 2012 +0300
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+out=0;
+
+for sz in `ps -axo rss=` ; do
+    out=$(( ${out} + ${sz} ));
+done
+
+echo "Memory used by userland programs: ${out}K"
+
+sysctl vm.vmtotal


More information about the Zrouter-src mailing list