freebsd - linux memory usage

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
bytebanditkiller

freebsd - linux memory usage

Post by bytebanditkiller »

Here a solution which i found, used and worked for me... :-)

*****************************************************

I've solved this problem.

1.) linux emulator must be installed.

to check if already installed:

Code: Select all

# kldstat |grep linux
3 1 0xc2155000 19000 linux.ko

2.) add the following to /etc/fstab


Code: Select all

linproc /compat/linux/proc linprocfs rw 0 0

3.) change linux_memory.pl script to:

Code: Select all

#!/usr/bin/perl

$mem = `cat /compat/linux/proc/meminfo | grep -w "$ARGV[0]"`;
$mem =~ s/($ARGV[0].*\s)(.*[0-9])( kB)//;

print $2; 

and now it works perfectly !

greetings
cccc

*********************************************************
capibar
Posts: 2
Joined: Wed Mar 19, 2008 4:38 am

Post by capibar »

Yes. This works for me too!

Thank you for the tip!
assol
Posts: 1
Joined: Thu Oct 03, 2013 12:49 am

Re: freebsd - linux memory usage

Post by assol »

There is another solution. :)

1) Save analog prog https://www.adrive.com/public/JJUTE2/free free to /usr/local/bin
2) Save script https://www.adrive.com/public/z5xWPu/mem_free.pl for split needed info to cacti/scripts
3) Add templates https://www.adrive.com/public/xs6qAK/ca ... y_free.xml
4) Create 'New Graphs'
5) Enjoy

Good luck. :wink:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest