Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 784
  • Last Modified:

free memory command

hello there,
I am trying to get the same results on freebsd as I get them in linux..
how can I do that?
[(05:00 PM)][(root@dedicated)] [(~)] $ free -bt
             total       used       free     shared    buffers     cached
Mem:    2115526656 1922269184  193257472          0  155131904  961261568
-/+ buffers/cache:  805875712 1309650944
Swap:   1077501952     184320 1077317632
Total:  3193028608 1922453504 1270575104
[(05:00 PM)][(root@dedicated)] [(~)] $ free -bt | grep buffers\/cache | awk '{print $3}'
805875712
[(05:00 PM)][(root@dedicated)] [(~)] $ free -bt | grep buffers\/cache | awk '{print $4}'
1309523968

Open in new window

0
XK8ER
Asked:
XK8ER
  • 2
  • 2
1 Solution
 
saurabhpendharkerCommented:
Hello,

I have already answered it on ID:23916230 and specifying the same again in this thread. Please see below:

Get the following file on your freebsd box http://www.cyberciti.biz/files/scripts/freebsd-memory.pl.txt
bash# mv freebsd-memory.pl.txt /usr/local/bin/free
bash# chmod +x /usr/local/bin/free
bash# /usr/local/bin/free ( Note: Perl need to be installed)
0
 
XK8ERAuthor Commented:
both questions are totally different so you cannot answer the same!
0
 
saurabhpendharkerCommented:
Yes I noticed it after I submit it. Sorry about that.
You may try "top" command or "sysctl -a | grep -i memory".
0
 
XK8ERAuthor Commented:
so how exactly can I get the same results on a freebsd system?
0
 
gheistCommented:
Memory manager is different. Use Linux if you do not like FreeBSD, or use SNMP for more generic and unified view of different systems.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now