Dstat: column ---system---: what does int and csw mean.

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Dstat: column ---system---: what does int and csw mean.
# 1  
Old 01-29-2015
Dstat: column ---system---: what does int and csw mean.

Hello All

It has been some time sense I was last here.
Hopefully I have a few points left to get this question answered.

I am finding that dstat is a really great tool, but does any one know what "init" and "csw" mean under the column --system--.
I am not able to find anything in the man pages.

Code:
---system--
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
 25   2  74   0   0   0|   0     0 |4552B  536B|   0     0 |1198   545

# 2  
Old 01-29-2015
That's not "init" but "int" for interrupts. "csw" means "context switches"
# 3  
Old 01-29-2015
thx. I interpret csw as the number of times the system is switching between threads to service different processes.

I interpret int are strait forward. The number of processes that need immediate attention.

wiki definitions posted below to save folks time if they read this forum post.
Please close this forum thread.


Context switch
From Wikipedia, the free encyclopedia

In computing, a context switch is the process of storing and restoring the state (context) of a process or thread so that execution can be resumed from the same point at a later time. This enables multiple processes to share a single CPU and is an essential feature of a multitasking operating system. What constitutes the context is determined by the processor and the operating system.[1]

Context switches are usually computationally intensive, and much of the design of operating systems is to optimize the use of context switches. Switching from one process to another requires a certain amount of time for doing the administration – saving and loading registers and memory maps, updating various tables and lists etc.


Interrupt
From Wikipedia, the free encyclopedia

In systems programming, an interrupt is a signal to the processor emitted by hardware or software indicating an event that needs immediate attention. An interrupt alerts the processor to a high-priority condition requiring the interruption of the current code the processor is executing. The processor responds by suspending its current activities, saving its state, and executing a function called an interrupt handler (or an interrupt service routine, ISR) to deal with the event. This interruption is temporary, and, after the interrupt handler finishes, the processor resumes normal activities.[1] There are two types of interrupts: hardware interrupts and software interrupts.

Hardware interrupts are used by devices to communicate that they require attention from the operating system.[2] Internally, hardware interrupts are implemented using electronic alerting signals that are sent to the processor from an external device, which is either a part of the computer itself, such as a disk controller, or an external peripheral. For example, pressing a key on the keyboard or moving the mouse triggers hardware interrupts that cause the processor to read the keystroke or mouse position. Unlike the software type (described below), hardware interrupts are asynchronous and can occur in the middle of instruction execution, requiring additional care in programming. The act of initiating a hardware interrupt is referred to as an interrupt request (IRQ).
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Linux

Dstat: column ---system---: what does int and csw mean.

Hello All It has been some time sense I was last here. Hopefully I have a few points left to get this question answered. I am finding that dstat is a really great tool, but does any one know what "init" and "csw" mean under the column --system--. I am not able to find anything in the man... (0 Replies)
Discussion started by: busi386
0 Replies

2. Programming

Handle int listen(int sockfd, int backlog) in TCP

Hi, from the manual listen(2): listen for connections on socket - Linux man page It has a parameter called backlog and it limits the maximum length of queue of pending list. If I set backlog to 128, is it means no more than 128 packets can be handled by server? If I have three... (3 Replies)
Discussion started by: sehang
3 Replies

3. UNIX for Dummies Questions & Answers

Help needed with CUPS+gutenprint from CSW

Hello team. I have just migrated from Linux Arch to Solaris 11 (OpenSolaris 2008.05). My Epson Stylus Photo R800 worked wonderfully in Linux ... oh woe is me in Solaris. I cannot print. I get: lp: Unsupported format 'text/plain'! The R800 drivers are not in gimpprint so I had to... (1 Reply)
Discussion started by: keratos
1 Replies

4. UNIX for Dummies Questions & Answers

System date to a column

Hello, I would like to write a scrip which gives System Date for a column, is there any function I can use to print the System date. Thanks in Advance Regards, Mahesh (4 Replies)
Discussion started by: gmahesh2k
4 Replies

5. Solaris

Solaris packages and .CSW files

Hello, I would like to know what are the *.CSW file for in a Solaris package or what is the "politic" of those files. I realized for example that when I install my package of Postfix, I have some postfix files created in /opt/csw/etc/postfix but some of them have the .CSW extension. This is... (0 Replies)
Discussion started by: Tex-Twil
0 Replies

6. UNIX for Dummies Questions & Answers

int open(const char *pathname, int flags, mode_t mode) doubt...

hello everybody! I want to create a file with permissions for read, write, and execute to everybody using C, so I write this code: #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main(){ int fileDescriptor; fileDescriptor =... (2 Replies)
Discussion started by: csnmgeek
2 Replies

7. Programming

difference between int ** func() and int *& func()

What is the difference between int** func() and int*& func(). Can you please explain it with suitable example. Thanks, Devesh. (1 Reply)
Discussion started by: devesh
1 Replies
Login or Register to Ask a Question