LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-31-2016, 06:25 AM   #1
chehelstoon@gmail.com
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Rep: Reputation: Disabled
what does mean pgscank/s in sar command ?


Hello to every body

In sar command with "-B" option there is "pgscank/s" field
the man page says it is "Number of pages scanned by the kswapd daemon per second"

My questions is :

1.if we have high number in "pgscank/s" field can we realize that the server has many swap pages in/out ?

2. does "number of pages scanned by the kswapd daemon per second" means "number of swap pages has been sent in and out by kswapd daemon" ?

3.do you know about "pgscand/s", can you explain it more ?

thanks
 
Old 01-31-2016, 11:07 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hello and welcome to the forum

Just as a suggestion, you might want to change your username using the instructions at the top of the page here, lest your email inbox ends up with a boatload of SPAM in the very near future.

Regards...
 
Old 01-31-2016, 01:58 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by chehelstoon@gmail.com View Post
Hello to every body
In sar command with "-B" option there is "pgscank/s" field the man page says it is "Number of pages scanned by the kswapd daemon per second"

My questions is :
1.if we have high number in "pgscank/s" field can we realize that the server has many swap pages in/out ?
2. does "number of pages scanned by the kswapd daemon per second" means "number of swap pages has been sent in and out by kswapd daemon" ?
3.do you know about "pgscand/s", can you explain it more ?
Paging is not the same as swapping. Paging activity may increase when simply running a program, to get their code off disk and into memory, or working with memory-mapped files. This doesn't *NECESSARILY* mean that swap is used. pgpin/s and pgpout/s values refer to 'swappiness'.

Major faults per second (majflt/s), is the measure of disk read activity that needs to happen due to swapping. This indicator is not exclusively for swapped pages, but for *any* kind of pages. A constantly high number of major faults would mean that your process execution is interrupted too often to wait for disk I/O to complete reading pages (code, memory-mapped file data or other memory portions previously swapped out to disk).

That's a good indicator if your system may be lacking memory for its current load; major faults are going to be repeatedly produced if pages previously loaded into memory are getting thrown (swapped) out, due to shortage of memory and then re-requested because they are actively worked on by the current processes.

Last edited by TB0ne; 01-31-2016 at 02:00 PM.
 
1 members found this post helpful.
Old 01-31-2016, 02:00 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ardvark71 View Post
Hello and welcome to the forum

Just as a suggestion, you might want to change your username using the instructions at the top of the page here, lest your email inbox ends up with a boatload of SPAM in the very near future.

Regards...
Similarly, as 'just a suggestion', you may want to re-visit the LQ Rules. Specifically, these two:
  • Do not post if you do not have anything constructive to say in the post.
  • When posting in an existing thread, ensure that what you're posting is on-topic and relevant to the thread. If the content of your post will interfere with the current discussion, you should start a new thread.
Please address posters questions if you're going to reply. Also, there is something mentioned about creating multiple user ID's, too, since this is your SECOND:
http://www.linuxquestions.org/questi...um-4175556925/

Last edited by TB0ne; 01-31-2016 at 04:46 PM.
 
Old 02-01-2016, 03:03 AM   #5
chehelstoon@gmail.com
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Paging is not the same as swapping. Paging activity may increase when simply running a program, to get their code off disk and into memory, or working with memory-mapped files. This doesn't *NECESSARILY* mean that swap is used. pgpin/s and pgpout/s values refer to 'swappiness'.

Major faults per second (majflt/s), is the measure of disk read activity that needs to happen due to swapping. This indicator is not exclusively for swapped pages, but for *any* kind of pages. A constantly high number of major faults would mean that your process execution is interrupted too often to wait for disk I/O to complete reading pages (code, memory-mapped file data or other memory portions previously swapped out to disk).

That's a good indicator if your system may be lacking memory for its current load; major faults are going to be repeatedly produced if pages previously loaded into memory are getting thrown (swapped) out, due to shortage of memory and then re-requested because they are actively worked on by the current processes.


TB0ne thank you for your replay

Do you think that we can use "vmstat" command output (my mean is "si" and "so" fields) as indicator for swapping ?
If "si" and "so" values increase and is high , Can we say Linux stores and loads many swap pages ?

Thanks
 
Old 02-01-2016, 07:37 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by chehelstoon@gmail.com View Post
TB0ne thank you for your replay
Do you think that we can use "vmstat" command output (my mean is "si" and "so" fields) as indicator for swapping ? If "si" and "so" values increase and is high , Can we say Linux stores and loads many swap pages ?
The man pages for vmstat are pretty comprehensive, and swapping is one of the things tracked there, as it is in sar. The better question is what's going on with your server that you're concerned with this?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help on sar command manoj.linux Linux - Enterprise 5 09-29-2015 01:48 PM
Regarding sar command sandykrishn1988 Linux - Newbie 1 08-27-2015 02:46 PM
Question about sar command Spiros85 Linux - Server 3 04-09-2014 12:16 PM
sar command maooah Solaris / OpenSolaris 16 08-12-2008 05:16 AM
sar command rsuks Linux - General 2 03-25-2006 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:45 PM.

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
Open Source Consulting | Domain Registration