Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sys::meminfo(3) [centos man page]

MemInfo(3)						User Contributed Perl Documentation						MemInfo(3)

Sys::MemInfo - Memory informations

SYNOPSIS
use Sys::MemInfo qw(totalmem freemem totalswap); print "total memory: ".(&totalmem / 1024)." "; print "free memory: ".(&freemem / 1024)." "; print "total swap: ".(&totalswap / 1024)." "; print "free swap: ".(Sys::MemInfo::get("freeswap") / 1024)." "; DESCRIPTION
Sys::MemInfo return the total amount of free and used physical memory in bytes in totalmem and freemem variables. Total amount of free and user swap memory are alse returned in totalswap and freeswap variables. This module has been tested on Linux 2.6.10, UnixWare 7.1.2, AIX5, OpenBSD 3.8, NetBSD 2.0.2, FreBSD 5.4, HPUX11, Solaris 9, Tru64 5.1, Irix 6.5, Mac OS X 10.2 darwin and Windows XP. It should work on FreeBSD 4 and Windows 9X/ME/NT/200X/Vista. METHODS
availkeys Return list of all accessor keys (freemem, totalmem, etc.) This is useful for dumping out all known information from the object by calling get() on all of the returned keys. freemem Returns free physical memory in bytes. freeswap Returns free swap space in bytes. get Returns the value of the passed key. totalmem Returns total physical memory size in bytes. totalswap Returns total swap space in bytes. AUTHOR
Sylvain Cresto <scresto@gmail.com> Thanks to Laurent Dufour and Wilson Snyder. BUGS
Please send bug-reports to scresto@gmail.com LICENCE
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA COPYRIGHT
Copyright (C) 2005, 2006 - Sylvain Cresto perl v5.16.3 2006-11-09 MemInfo(3)

Check Out this Related Man Page

COMEDI_GET_BUFFER_SI(3) 					 Comedi reference					   COMEDI_GET_BUFFER_SI(3)

NAME
comedi_get_buffer_size - streaming buffer size of subdevice SYNOPSIS
#include <comedilib.h> int comedi_get_buffer_size(comedi_t * device, unsigned int subdevice); DESCRIPTION
The function comedi_get_buffer_size returns the size (in bytes) of the streaming buffer for the subdevice specified by device and subdevice. On error, -1 is returned. AUTHORS
David Schleef <ds@schleef.org> Author. Frank Mori Hess <fmhess@users.sourceforge.net> Author. Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be> Author. Bernd Porr <tech@linux-usb-daq.co.uk> Author. Ian Abbott <abbotti@mev.co.uk> Author. COPYRIGHT
Copyright (C) 1998-2003 David Schleef Copyright (C) 2001-2003, 2005, 2008 Frank Mori Hess Copyright (C) 2002-2003 Herman Bruyninckx Copyright (C) 2012 Bernd Porr Copyright (C) 2012 Ian Abbott This document is part of Comedilib. In the context of this document, the term "source code" as defined by the license is interpreted as the XML source. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. Comedi 07/06/2012 COMEDI_GET_BUFFER_SI(3)
Man Page

Featured Tech Videos