140a3
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
i'm curious if anyone knows where i can find a list of the "states" shown in top, i tried to search and dind't see much.
I see a LOT of processes in the "kqread" state not chaning much, and i was wondering what it meant....some of it i can figure out, like i assume zio means zfs io or something i'm GUESSING kqread is something to do with the kernel and read but i really have no clue... |
|
#2
|
||||
|
||||
|
That would be kqueue(2).
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
|
#3
|
||||
|
||||
|
When I watched video about Benchmarking FreeBSD (from FreeBSD site), guy told, that if all states in top aren't documented, and if someone really want's to figure it out, he have to din in source of top
|
|
#4
|
||||
|
||||
|
top command man page also explains output.
__________________
Neither in this world nor elsewhere is there any happiness in store for him who always doubts. If you enjoyed my answer please consider donating some money to FreeBSD foundation @ http://www.freebsdfoundation.org/ |
|
#5
|
|||
|
|||
|
you can see similar info via
mwchan column in ps(1)Code:
$ ps Omwchan
PID MWCHAN TT STAT TIME COMMAND
1250 kqread ?? Is 0:00.93 /usr/sbin/nscd
$ ps l
UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND
0 1250 1 0 44 0 11604 2156 kqread Is ?? 0:00.94 /usr/sbin/nscd
|
|
#6
|
|||
|
|||
|
Hi wonslung,
Just to put it (very) simple: in FreeBSD, all processes are either capable of running (placed on the run queue of the scheduler) or are waiting for some activity (blocked, placed on sleep queues). When processes are blocked on sleep queues, they can specify a wait channel message, which is the column you are describing. You can also see this message show up if you press ^T in the terminal: $ load: 0.00 cmd: sh 97917 [ttyin] 5.75r 0.00u 0.00s 0% 1364k As you can see, the process is blocked on "ttyin", which means the process is waiting for input on the TTY, which makes sense. These states aren't documented, mainly because the strings that are used are spread throughout the tree and are subject to change. "kqread" just means a process is blocked on kqueue(2). "select" means a process is blocked on select(2). "nanslp" means a process sleeping on a nanosleep(2) call. |
| The Following 4 Users Say Thank You to ed@ For This Useful Post: | ||
blah (June 23rd, 2009), manolis@ (June 23rd, 2009), Patrickly (November 9th, 2010), vertexSymphony (November 13th, 2010) | ||
|
#7
|
||||
|
||||
|
Hello ,
What about state *Name , what does it mean ? I found only similar name as parameter *NameBuffer in AcpiNsBuildExternalPath function , but ... |
|
#8
|
|||
|
|||
|
So you want to know what it means when the string starts with an asterisk? That means it's currently blocked on a lock (e.g. a mutex) inside the kernel.
|
|
#9
|
||||
|
||||
|
Hello ,
No , I want to know what means Name in *Name |
|
#10
|
|||
|
|||
|
It's a description of the lock. Each lock in the kernel also has a wchan-like string associated with it.
|
|
#11
|
||||
|
||||
|
Hello ,
Yes, but where I can find info what does exactly mean this description Name ![]() I have processes which sometimes stucks in *Name state for a while , and I wonder what exactly causing the lock , and because currently I don't have compiled any debug info ( or sysctl enabled ) I believe it is somewhere documented / mentioned . And until now I found related info ( similar to *Name ) only in sys/dev/acpica . |
|
#12
|
|||
|
|||
|
That's probably the name cache:
fgrep -r '"Name' /sys/kern
Last edited by DutchDaemon; November 10th, 2010 at 00:24. |
| The Following User Says Thank You to ed@ For This Useful Post: | ||
quintessence (November 9th, 2010) | ||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] top + cpu load | graudeejs | General | 11 | August 5th, 2010 08:35 |
| [Solved] top | Graaf_van_Vlaanderen | General | 3 | April 12th, 2009 16:21 |
| My top ten reasaon for going opensource | ChickenWing88 | Off-Topic | 5 | February 24th, 2009 07:26 |
| oh no, top level domain name doesn't resolve | porcelaindev | Web & Network Services | 11 | January 9th, 2009 15:12 |
| nice and priority (PRI in top) | rambetter | General | 1 | December 13th, 2008 01:20 |