Skip to contentSkip to conversation

server migration

DISCUSSION Lawrence Walton 5 participants 7 messages Mar 5, 2004 – Mar 8, 2004

lore
Share & tools
lore
#0 lore raw

Hi all!

I tried about four months ago to migrate a busy server to 2.6.0-test9, and failed miserably. Lightly loaded it worked well but as the number of users increased, the number of processes in uninterruptible sleep increased to the hundreds and then the server fell on it's face. I never found out exactly why or what processes where hanging if I guessed it would be openldap.

I'd like to take another shot at it with 2.6.3, I'd also like to get some hints on how better to debug the problem; remember it is a live server with live users, I can't spend much time before rebooting back to a 2.4 kernel and yes 2.4.25 runs fine.

Things that are non-standard

Lots of open files, it's not unusual to have 50000 open files. ext3 is mounted noatime,data=writeback on /home and /var Total processes are usually around 300 to 350.

Main applications are:

imap, exim and openldap running on Debian.

Questions, comments, flames are welcome.

Signature · 6 lines
*--* Mail: [email protected]
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://the-penguin.otak.com/~lawrence
--------------------------------------
- - - - - - O t a k  i n c . - - - - - 
#1 lore raw
Quoted 1 line · Lawrence Walton

I'd like to take another shot at it with 2.6.3,

Don't!

<personal experience, ymmv!>
Problems after sync, difficulties in the blocklayer/queuing/plugging. Our newsgateway has gone back to 2.6.0-test11 since that's the only one that seems to survive "hard-work".

2.6.4-rc1(-mm1) crashed hard on me, doing single-user stuff. _i_ would wait a while if i were in your position.

Danny

Signature · 4 lines
 /"\                        | Dying is to be avoided because
 \ /  ASCII RIBBON CAMPAIGN | it can ruin your whole career 
  X   against HTML MAIL     | 
 / \  and POSTINGS          | - Bob Hope
#2 lore raw
Quoted 7 lines · Danny ter Haar
Quoted 1 line · Lawrence Walton

I'd like to take another shot at it with 2.6.3,

Don't!

Quoted 7 lines

<personal experience, ymmv!>
Problems after sync, difficulties in the blocklayer/queuing/plugging. Our newsgateway has gone back to 2.6.0-test11 since that's the only one that seems to survive "hard-work".

2.6.4-rc1(-mm1) crashed hard on me, doing single-user stuff. _i_ would wait a while if i were in your position.

I have everything except for my GW/Firewall running 2.6.3 + two NFS patches and everything is working great.

Maybe you should find out which driver is giving you trouble, and help debug that.

Did you enable the NMI watchdog?
What about sysrq, did that still respond during your "hang"?

Mike

#3 lore raw
In reply to Lawrence Walton
Quoted 8 lines · Lawrence Walton

Hi all!

I tried about four months ago to migrate a busy server to 2.6.0-test9, and failed miserably. Lightly loaded it worked well but as the number of users increased, the number of processes in uninterruptible sleep increased to the hundreds and then the server fell on it's face. I never found out exactly why or what processes where hanging if I guessed it would be openldap.

Why do you guess? Determine what processes are stuck.

Quoted 11 lines

I'd like to take another shot at it with 2.6.3, I'd also like to get some hints on how better to debug the problem; remember it is a live server with live users, I can't spend much time before rebooting back to a 2.4 kernel and yes 2.4.25 runs fine.

Things that are non-standard

Lots of open files, it's not unusual to have 50000 open files. ext3 is mounted noatime,data=writeback on /home and /var Total processes are usually around 300 to 350.

Quoted 5 lines

Main applications are:

imap, exim and openldap running on Debian.

Questions, comments, flames are welcome.

Compile with stack pointers, capture SysRq-T, post stack traces of D processes to lkml.
--
vda

#4 lore raw
Quoted 12 lines · Denis Vlasenko [[email protected]] wrote:
Quoted 8 lines · Lawrence Walton

Hi all!

I tried about four months ago to migrate a busy server to 2.6.0-test9, and failed miserably. Lightly loaded it worked well but as the number of users increased, the number of processes in uninterruptible sleep increased to the hundreds and then the server fell on it's face. I never found out exactly why or what processes where hanging if I guessed it would be openldap.

Why do you guess? Determine what processes are stuck.

Because I did not expect it to happen, I had lots of users screaming at me to fix it now, when it did happen. The server had been up sense the night before. It was not until users started showing up in the morning that the problem manifested itself.

The point is I was hoping to get a list of things to try to capture in case it happened again, testing is all well and good, but getting information from a production box can be valuable, as long as it's not some odd corner case.

Capturing SysRq-T was on my list to do.
I'll investigate stack pointers, and If I can post stack traces.

I was hoping to get pointers like below before I tried it again.

<snip>

Quoted 5 lines

Compile with stack pointers, capture SysRq-T, post stack traces of D processes to lkml.
--
vda

Signature · 6 lines
*--* Mail: [email protected]
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://the-penguin.otak.com/~lawrence
--------------------------------------
- - - - - - O t a k  i n c . - - - - - 
#5 lore raw
Quoted 18 lines · Lawrence Walton
Quoted 11 lines · Denis Vlasenko [[email protected]] wrote:
Quoted 8 lines · Lawrence Walton

Hi all!

I tried about four months ago to migrate a busy server to 2.6.0-test9, and failed miserably. Lightly loaded it worked well but as the number of users increased, the number of processes in uninterruptible sleep increased to the hundreds and then the server fell on it's face. I never found out exactly why or what processes where hanging if I guessed it would be openldap.

Why do you guess? Determine what processes are stuck.

Because I did not expect it to happen, I had lots of users screaming at me to fix it now, when it did happen. The server had been up sense the night before. It was not until users started showing up in the morning that the problem manifested itself.

Quoted 7 lines

The point is I was hoping to get a list of things to try to capture in case it happened again, testing is all well and good, but getting information from a production box can be valuable, as long as it's not some odd corner case.

Capturing SysRq-T was on my list to do.
I'll investigate stack pointers, and If I can post stack traces.

Well. That's easy. Just press SysRq-T and look into syslog. --
vda

#6 lore raw
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines · Lawrence Walton
Quoted 8 lines

Hi all!

I tried about four months ago to migrate a busy server to 2.6.0-test9, and failed miserably. Lightly loaded it worked well but as the number of users increased, the number of processes in uninterruptible sleep increased to the hundreds and then the server fell on it's face. I never found out exactly why or what processes where hanging if I guessed it would be openldap.

-Test9 was the "oddest" kernel I ever ran (since 2.2.x) - even got it repeatably to hardlock lock by loading it a bit with dd ;)

Since then, Nick Pigin has put a hell of an effort into the anticipatory scheduler and much else all over has been refined too.

I have done a bit of stress testing of io, network and cpu and IMO, 2.6.3 will perform nicely in a server environment and there will be no significant problems.

Input from production use is essential though and it would be much appreciated if you would go for it :)

Regards
Michael