* Full lockup when compiling kernel with "optimal" number of threads
@ 2011-09-03 3:34 Pavel Ivanov
2011-10-03 9:38 ` Srivatsa S. Bhat
2011-10-03 9:39 ` Srivatsa S. Bhat
0 siblings, 2 replies; 3+ messages in thread
From: Pavel Ivanov @ 2011-09-03 3:34 UTC (permalink / raw)
To: ecryptfs; +Cc: linux-kernel
Hi,
I can reliably reproduce a complete machine lockup when compiling
kernel sources with "make -j". After making some progress machine
stops responding to anything (including CapsLock/NumLock switching or
mouse moving) and after hard reboot nothing is left in kern.log or
syslog. Only attaching a serial console gives me the following clues
to what happens:
[ 376.460584] INFO: task cc1:6839 blocked for more than 60 seconds.
[ 376.533411] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 376.627129] INFO: task cc1:6840 blocked for more than 60 seconds.
[ 376.699991] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 376.793636] INFO: task cc1:6850 blocked for more than 60 seconds.
[ 376.866397] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 376.960026] INFO: task cc1:7017 blocked for more than 60 seconds.
[ 377.032776] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 377.128156] INFO: task cc1:7079 blocked for more than 60 seconds.
[ 377.200907] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 377.294522] INFO: task cc1:7188 blocked for more than 60 seconds.
[ 377.367274] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 377.460984] INFO: task cc1:8342 blocked for more than 60 seconds.
[ 377.533746] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 377.627372] INFO: task cc1:8425 blocked for more than 60 seconds.
[ 377.700119] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 377.793737] INFO: task cc1:8502 blocked for more than 60 seconds.
[ 377.866488] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 377.960103] INFO: task cc1:8535 blocked for more than 60 seconds.
[ 378.034788] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
Interesting thing is that after such hang happens, I reboot the
machine and try to build again (this time with limited number of
threads) I get lots of "input/output errors" from make and messages
like the following in kern.log:
[ 186.518188] ecryptfs_decrypt_page: Error attempting to read lower
page; rc = [-4]
[ 186.522951] ecryptfs_decrypt_page: Error attempting to read lower
page; rc = [-4]
[ 186.522955] ecryptfs_readpage: Error decrypting page; rc = [-4]
[ 186.542690] Valid eCryptfs headers not found in file header region
or xattr region
[ 186.542694] Either the lower file is not in a valid eCryptfs
format, or the key could not be retrieved. Plaintext passthrough mode
is not enabled; returning -EIO
(As you can guess I'm building in my home directory which is ecryptfs.)
After that only doing "make distclean" allows me to compile kernel
again. And note that when I build with "make -j 10" everything works
fine (I have 2 CPUs with 4 cores each without hyper-threading).
So is it some bug or a known bad usage of ecryptfs?
Thank you,
Pavel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Full lockup when compiling kernel with "optimal" number of threads
2011-09-03 3:34 Full lockup when compiling kernel with "optimal" number of threads Pavel Ivanov
@ 2011-10-03 9:38 ` Srivatsa S. Bhat
2011-10-03 9:39 ` Srivatsa S. Bhat
1 sibling, 0 replies; 3+ messages in thread
From: Srivatsa S. Bhat @ 2011-10-03 9:38 UTC (permalink / raw)
To: Pavel Ivanov; +Cc: ecryptfs, linux-kernel
On 09/03/2011 09:04 AM, Pavel Ivanov wrote:
> Hi,
>
> I can reliably reproduce a complete machine lockup when compiling
> kernel sources with "make -j". After making some progress machine
> stops responding to anything (including CapsLock/NumLock switching or
> mouse moving) and after hard reboot nothing is left in kern.log or
> syslog. Only attaching a serial console gives me the following clues
> to what happens:
>
[...]
> After that only doing "make distclean" allows me to compile kernel
> again. And note that when I build with "make -j 10" everything works
> fine (I have 2 CPUs with 4 cores each without hyper-threading).
How much memory does your system have? Doing so many fork()s could cause
a lot of resource conflict and memory pressure leading to heavy swapping
etc., which can ultimately hang your system, especially when your RAM
size is small. It is advisable to use make -j only on systems with lot
of RAM (> 3 or 4GB).
--
Regards,
Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Linux Technology Center,
IBM India Systems and Technology Lab
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Full lockup when compiling kernel with "optimal" number of threads
2011-09-03 3:34 Full lockup when compiling kernel with "optimal" number of threads Pavel Ivanov
2011-10-03 9:38 ` Srivatsa S. Bhat
@ 2011-10-03 9:39 ` Srivatsa S. Bhat
1 sibling, 0 replies; 3+ messages in thread
From: Srivatsa S. Bhat @ 2011-10-03 9:39 UTC (permalink / raw)
To: Pavel Ivanov; +Cc: ecryptfs, linux-kernel
On 09/03/2011 09:04 AM, Pavel Ivanov wrote:
> Hi,
>
> I can reliably reproduce a complete machine lockup when compiling
> kernel sources with "make -j". After making some progress machine
> stops responding to anything (including CapsLock/NumLock switching or
> mouse moving) and after hard reboot nothing is left in kern.log or
> syslog. Only attaching a serial console gives me the following clues
> to what happens:
>
By the way "optimal" is supposed to be make -j <nr_cpus*2> isn't it?
IIRC, "maximal" refers to make -j
--
Regards,
Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Linux Technology Center,
IBM India Systems and Technology Lab
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-03 9:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 3:34 Full lockup when compiling kernel with "optimal" number of threads Pavel Ivanov
2011-10-03 9:38 ` Srivatsa S. Bhat
2011-10-03 9:39 ` Srivatsa S. Bhat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox