LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2010, 07:00 AM   #1
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Rep: Reputation: 18
Linux command for paging?


Anyone who can help me with a command which can display linux paging(related to virtual memory)?
 
Old 03-25-2010, 07:14 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Are you looking at these commands ?

Code:
vmstat
top
free
 
Old 03-25-2010, 08:33 AM   #3
linuxunix
Member
 
Registered: Mar 2010
Location: California
Distribution: Slackware
Posts: 235

Original Poster
Rep: Reputation: 18
How can I detect if paing is happening with that command?What pages-in and what pages-out?
 
Old 03-25-2010, 09:12 AM   #4
omersattar
LQ Newbie
 
Registered: Feb 2008
Posts: 14

Rep: Reputation: 1
linux uses swap space as paging file can we change swap space as we change in windows?like can we increase or decrease swap space while running linux in any runlevel??anybody please
 
Old 03-25-2010, 09:18 AM   #5
sreeharsha.t
Member
 
Registered: Jan 2009
Location: Mumbai, India
Distribution: Fedora 9, 10,11, RHEL 5
Posts: 67

Rep: Reputation: 18
The following is the top o/p from my desktop:
Quote:
top - 18:42:39 up 5:33, 2 users, load average: 0.18, 0.17, 0.17
Tasks: 165 total, 3 running, 162 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.8%us, 2.5%sy, 0.0%ni, 94.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1914008k total, 1571400k used, 342608k free, 50984k buffers
Swap: 2047992k total, 27292k used, 2020700k free, 845296k cached
Here you can see that from the last line of the above quoted message that some part of the swap space is in use.

You can dynamically increase/decrease swap size. To increase
Code:
swapon /dev/<harddisk_partition>
To decrease:
Code:
swapoff /dev/<harddisk_partition>
Be careful while manually turning on the swap space as you may accidentally give some other hard disk partition which may corrupt all the data on that partition
 
Old 11-07-2012, 11:46 AM   #6
yash0307
LQ Newbie
 
Registered: Jan 2012
Posts: 10

Rep: Reputation: Disabled
determine the virtual pages

how can I print the virtual pages allocated to the currently running processes on my system and also the page faults associated with them?
 
Old 11-08-2012, 02:28 PM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,052

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
Maybe you were looking for this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shadow paging on Linux VM? linuxunix Linux - Virtualization and Cloud 2 03-27-2010 03:51 PM
Help working with .ai files in linux/paging Illustrator users slackist Linux - General 0 07-29-2004 11:24 AM
linux paging algorithm - how are stale pages handled? DarkBeethoven Programming 3 05-26-2004 09:14 PM
how to step through paging in linux kernel? chansky Linux - General 2 01-31-2003 03:00 PM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration