8b03 [Solved] kvm_getswapinfo equivalent sysctl - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Development > Userland Programming & Scripting

Userland Programming & Scripting C, Shell, Perl, Sed & Awk

Reply
 
Thread Tools Display Modes
  #1  
Old April 7th, 2012, 10:03
hsn hsn is offline
Junior Member
 
Join Date: Mar 2011
Posts: 24
Thanks: 1
Thanked 0 Times in 0 Posts
Default kvm_getswapinfo equivalent sysctl

Hi,

I need to be able to get the number of free swap bytes from a java program. I can execute sysctl but can't find the correct variable with free or used swap space. I see only total swap space.

Does anybody know which sysctl it is?

Last edited by hsn; April 12th, 2012 at 20:16.
Reply With Quote
  #2  
Old April 10th, 2012, 22:27
Harikrishnan Harikrishnan is offline
Junior Member
 
Join Date: Apr 2012
Location: India
Posts: 3
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Hi hsn,

Try this

Code:
]# swapinfo 
Device          1K-blocks     Used    Avail Capacity
/dev/ad1s1b       2061280        0  2061280     0%

Last edited by DutchDaemon; April 11th, 2012 at 00:46.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] /etc/rc.d/sysctl: WARNING: sysctl current does not exist. ccc General 7 March 8th, 2012 06:10
checkinstall equivalent tantra35 Installation and Maintenance of FreeBSD Ports or Packages 7 November 26th, 2010 08:58
how much equivalent Myron Web & Network Services 3 October 9th, 2010 02:53
Equivalent command for freeBSD.. gadz30795 General 4 May 13th, 2010 06:05
Equivalent to Linux's apm=force? GullibleJones System Hardware 1 April 10th, 2009 09:38


All times are GMT +1. The time now is 21:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0