From 70c97b33342a43126d861f2a9d95d3b837a72383 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 17 Sep 2009 07:18:47 +0000 Subject: [PATCH] for power contrl commands, every cec fork one process. So if rpower multiple nodes on several cec, say 20 cec, there are more than 20 connection request to hmc at the same time. This make sshd on hmc failed to respond and refuse the connections request. Add some sleep between every fork per cec. This will not reduce the performance too much, since only sleeps between cecs. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/PPC.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 0aa34eb58..f09938146 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -391,6 +391,7 @@ sub process_command { } $hw = @$_[0]; + Time::HiRes::sleep(0.2); my ($pipe) = fork_cmd( @$_[0], @$_[1], $request ); if ( $pipe ) { $fds->add( $pipe );