Why does swapper cause kernel crash ?? -- Linux general technology-Linux technology and application information. For details, refer to the following section. My kernel is linux 2.6.34, the hardware is POWERPC8313, and two 10/100 m network ports are extended. When the extended network port is used for tcp communication,
The system crashes in about two days. Please help me analyze the following information. What may be the cause ??
BUG: soft lockup-CPU
" ... #6 [ffff88106ed1d668] _spin_lock at FFF fffff8152a311 #7 [ffff88106ed1d670] shrink_inactive_list at ffffffff81139f80 The general meaning is that all the threads that need allocate memory now have to call Zone_reclaim to Inactive_list to reclaim Pagecache, which is called direct reclaim.Brief summary information is as follows:A total of 24 CPUs, we look at the status of each CPU at this time
Cpu
Run the program
Functions that are running
0
Crond
) {print_cswtop ()printf(“————————————————————–\n”)}CTRL+D
This script will print the TOP 20 most switched processes and their pid at the specified time. Let's take a look at the result:
[root@my174 admin]# stap cswmon.stp 5Context switch COUNTswapper(0)->systemtap/11(908) 500systemtap/11(908)->swapper(0) 498swapper(0)->fct1-worker(2492) 50fct1-worker(2492)->swapper(0) 50swapper(0)->fct0-worker(2191) 50fct0
commands No, we need a replacement command to execute only once. The simplest part is to write a pattern that matches the dog or man. The hard part is how to write an expression that accepts one of the two words and then returns another word. We'll take care of the hardest part first.Return the other WordWe don ' t even has to create a function to get the job done. We can do it with a simple dictionary data structure by creating-key-value pairs. In Vim, try typing the following:Here we do not
needs. The final conclusion: the size of the swapper process (kernel space) required to reserve a page table is related to page table level, and if you use section mapping, you need to reserve pgtable_levels-1 page. If you do not use section mapping, you need to reserve Pgtable_levels page.The above conclusion is suitable for most cases of identity mapping, but there are exceptions (the points to consider are primarily related to the location of thei
On July 6, April 24, this day finally passed. On this day, a "little life" was born on the Internet, which is Ubuntu8.04 (Gender: neutral ). Ubuntu8.04 is a "mixed-Blood", which has a Windows "Swapper" ("Wubi"). After a lifetime, it will quietly "fall asleep" in the Windows "Swapper ". It looks like a member of the Windows family ". How is this happening? In today's world, most PC computers are pre-installe
Do_wp_page () cancels the share operation on the physical page that caused the write to abort, and copies a new physical page for the write process. Finally, when the exception handler is returned, the CPU will re-execute the write instruction that caused the exception, and the process continues.Establishment of Process No. 7 and No. 0
Kernel startup "Manual" established the No. 0 process, that is, the swapper process, which is a kernel-state p
delegates important tasks, such as refreshing the disk cache, exchanging unused page boxes, and maintaining network connections to the kernel thread, the kernel thread is not dragged down by unnecessary user context.
In Linux, kernel threads are different from common processes in the following aspects:
1. the kernel thread runs only in the kernel state, while normal processes can run both in the kernel state and in the user state.
2. because the kernel thread runs only in the kernel state, it
identificationEach process has a unique ID (non-negative integer) to identify.
There is some special processes, but the details of differ from implementation to implementation. Process ID 0 is usually the scheduler process and is often known as the swapper. No program on disk corresponds to this process, which are part of the kernel and is known as a system process. Process ID 1 is usually the INIT process and was invoked by the kernel at t
), the function checks the process to be selected for execution, is its priority lower than that of a sibling process that has run on a logical CPU of the same physical CPU? In this special case, schedule () rejects low-priority processes, and execute the Swapper process.If (RQ-> nr_running ){If (dependent_sleeper (smp_processor_id (), rq )){Next = RQ-> idle;Goto switch_tasks;}}
If no running process exists in the running queue, the function calls idl
299-train swapping
Time limit:3.000 seconds
Http://uva.onlinejudge.org/index.php?option=com_onlinejudgeItemid=8category=98page=show_problem problem=235
At a old railway station, your may still encounter one of the last remaining ' train swappers '. A Train Swapper is a employee of the railroad, whose sole job it are to rearrange the carriages of trains.
Once the carriages are arranged in the optimal order, all train driver-do, are drop the has off
Preface: A Fall in love with the original idea of Java has not been erased: "To share My learning results, no matter how deep the late technology, lay a good foundation is very important."
Tool Class Swapper, the later algorithm uses this tool class:
Copy Code code as follows:
Package com.meritit.sortord.util;
/*** One util to swap tow element of Array** @author Ysjian* @version 1.0* @email ysjian_pingcx@126.com* @QQ 646633781* @teleph
A system process with a PID of 0 is a scheduling process called swapper or sched. No program corresponds to the disk, which is part of the UNIX kernel. If the PID is 1, the init process is created by the kernel during the system self-lifting. The process is in/etc/init or the new/sbin/init version; this process is responsible for the system self-initiated. The system process with a PID of 0 is a scheduling process called
Have done before a customer apk process open Cap_net_raw permissions, in order to customers can use their own method to crawl TCP/IP packets, the Android Fork has some understandingFirst this apk process is zygote fork, the permissions of the zygote process contain cap_net_raw, but the fork after the Android APK permission did a rewrite through Setcapabilities (), You only need to add this cap_net_raw permission when overridingHere, let's introduce the process.Fork Fork Fork1,
Tiocnotty to remove the terminal and the session connection, into a normal terminal.For login session,session leader The connection to the terminal is established and the standard input, output, and error are directed to the terminal. Therefore, we do not need direct access to the control terminal for subsequent normal programs that use the shell, typically direct access to standard inputs, outputs, and errors. If there is a need (such as a program's standard input, the output is redirected), y
System Startup Process: init-general Linux technology-Linux programming and kernel information. The following is a detailed description. In the previous article, we learned how to display and manage running processes. Today, I want to describe how these processes actually start.
Many clever things happen when you start your computer into FreeBSD. I cannot discuss all the details here, but FreeBSD handbook provides an excellent explanation of the pilot process. When you start your computer, you
-font-family:; MSO-Fareast-theme-Font: minor-Fareast;MSO-Hansi-theme-Font: minor-Fareast ">
MSO-Fareast-font-family:; MSO-Fareast-theme-Font: minor-Fareast; MSO-Hansi-theme-Font:Minor-Fareast "> each process is identified by an ID, which is called a process number. The kernel allocates a process number for the newly created process through bitmap management. The kernel uses a linked list to link all process descriptors for unified management (process information can be viewed through the ps comm
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.