- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: wall hangs on tty_write system call for about ...
Operating System - Linux
1753936
Members
10007
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2008 09:38 PM
тАО08-14-2008 09:38 PM
--------------------------------------------------------------------------------
Hi
My system was about 20% cpu utilization. Console was open and some other terminals were oepn.
0. system info Linux Node1 2.6.10-telco-1.35.1-mckinley-smp #1 SMP Sun Nov 18 20:58:46 UTC 2007 ia64 GNU/Linux
1. System had invoked shutdown -r now commmand
2. As part of it , it was putting wall message to all ttys
The wall message is "The system is going down for reboot NOW!"
3. We found that wall was hanging for 15mins and was not posting this message to tty.
4. Because of above reason, shutdown was hanging for about 15 minutes.
===Code===
system ("while ( true );do sleep 25;date >> $rnps;ps -emo pid,ppid,psr,pcpu,pmem,vsz,rss,lwp,state,time,wchan=WIDE-WIDE-WCHAN-COLUMN,args>> $rnps; echo >> $rnps;done &");
...
..
shutdown -r now
====Code Ends===
Below is seen for about 15-mins as captured from ps -e
30133 30131 - 0.0 0.0 3632 1744 - - 00:00:00 -/usr/bin/wall
- - 3 0.0 - - - 30133 S 00:00:00 tty_write
Thanks
Krupa
Hi
My system was about 20% cpu utilization. Console was open and some other terminals were oepn.
0. system info Linux Node1 2.6.10-telco-1.35.1-mckinley-smp #1 SMP Sun Nov 18 20:58:46 UTC 2007 ia64 GNU/Linux
1. System had invoked shutdown -r now commmand
2. As part of it , it was putting wall message to all ttys
The wall message is "The system is going down for reboot NOW!"
3. We found that wall was hanging for 15mins and was not posting this message to tty.
4. Because of above reason, shutdown was hanging for about 15 minutes.
===Code===
system ("while ( true );do sleep 25;date >> $rnps;ps -emo pid,ppid,psr,pcpu,pmem,vsz,rss,lwp,state,time,wchan=WIDE-WIDE-WCHAN-COLUMN,args>> $rnps; echo >> $rnps;done &");
...
..
shutdown -r now
====Code Ends===
Below is seen for about 15-mins as captured from ps -e
30133 30131 - 0.0 0.0 3632 1744 - - 00:00:00 -/usr/bin/wall
- - 3 0.0 - - - 30133 S 00:00:00 tty_write
Thanks
Krupa
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2008 07:07 PM
тАО08-22-2008 07:07 PM
Re: wall hangs on tty_write system call for about 15 minutes on debian 2.6 kernel
**ANY ONE HELPING ME ON THIS ISSUE***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2008 02:39 AM
тАО08-23-2008 02:39 AM
Solution
Terminals? Do you mean you're using terminals attached with serial cables?
A serial-attached TTY might have the serial port handshaking lines stuck in a configuration that stops the server from sending any data to the terminal.
Of course, the wall command should be able to skip this automatically. But I think the use of serial-attached terminals (other than the console) is so rare these days, I suspect the wall command has not been tested against common failure modes of serial-attached terminals.
You might want to file a bug report to the manufacturer of your Linux distribution.
MK
A serial-attached TTY might have the serial port handshaking lines stuck in a configuration that stops the server from sending any data to the terminal.
Of course, the wall command should be able to skip this automatically. But I think the use of serial-attached terminals (other than the console) is so rare these days, I suspect the wall command has not been tested against common failure modes of serial-attached terminals.
You might want to file a bug report to the manufacturer of your Linux distribution.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2008 11:56 AM
тАО08-23-2008 11:56 AM
Re: wall hangs on tty_write system call for about 15 minutes on debian 2.6 kernel
Hi.
wall does not hang all the time. Your concern over tty seriel port handshaking stuck might have caused this to hang. Should not it hang all the time, in that case ?
One clear observation is that it hangs for "15-minutes". And the system call at which it hung was tty_write.
Note we have ssh sessions open from another system to this system. The ssh sessions are closed, before this wall was invoked. Those ssh sessions are from logical IPs. Does this cause system to hang. I read a topic on ssh tunnel hung case.
this hung session timeout in 15-minutes, explanation given from ssh-tunnel http://www.jfranken.de/homepages/johannes/vortraege/ssh2_inhalt.en.html
Do you think, our tty_write could hang because of above ssh session closed.
wall does not hang all the time. Your concern over tty seriel port handshaking stuck might have caused this to hang. Should not it hang all the time, in that case ?
One clear observation is that it hangs for "15-minutes". And the system call at which it hung was tty_write.
Note we have ssh sessions open from another system to this system. The ssh sessions are closed, before this wall was invoked. Those ssh sessions are from logical IPs. Does this cause system to hang. I read a topic on ssh tunnel hung case.
this hung session timeout in 15-minutes, explanation given from ssh-tunnel http://www.jfranken.de/homepages/johannes/vortraege/ssh2_inhalt.en.html
Do you think, our tty_write could hang because of above ssh session closed.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP