JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for TB-SUPPORT Archives


TB-SUPPORT Archives

TB-SUPPORT Archives


TB-SUPPORT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

TB-SUPPORT Home

TB-SUPPORT Home

TB-SUPPORT  June 2010

TB-SUPPORT June 2010

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: LHCb transfer problem + solution

From:

brian davies <[log in to unmask]>

Reply-To:

Testbed Support for GridPP member institutes <[log in to unmask]>

Date:

Thu, 24 Jun 2010 11:08:58 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (151 lines)

On 23 June 2010 16:41, Stuart Purdie <[log in to unmask]> wrote:
>
> On 23 Jun 2010, at 14:14, brian davies wrote:
>
>> Its not just min  but also the step size of packet change. You are
>> lucky increasing the starting value so high has not yet caused you
>> any other issues.
>
> It's the _same_ that YAIM puts it at.  If you forsee a potential problem with those values, I'd advise contacting the YAIM people about that, as your average DPM pool node sees more concurrent transfers than a worker node! True about DPM pool node getting more connections. Don't get started on YAIM changing sysctl.conf. I already have issues ( in writing no less!) about this.
>
>> (I would be intersted to see what happens for local WN jobs).
>
> Nothing noticeable.  Recall that we're using the BIC congestion control algorithm (I'd prefer CUBIC for the improved Janes fairness, but that's buggy on the 2.6.18 kernel in SL5.3); HTCP and Vegas didn't make much difference.  Matching the congestion algorithm with the target node, we get optimal cwnd to memory use efficiency as they both increase or decrease roughly in sync (i.e. neither side is holding a buffer much larger than the other).  So with the local SE transfers, the window descales rapidly under BIC when far from optimal, and thus releases a portion of that memory back.
>
> Specifically, in terms of transfer rates; we get 58 MB/s before and after the change between worker nodes and local SE.
>
>> The tier1 saw problems with lo memeorry running out if you raise the wuindow sizing too high.
>> for your 27ms link and 4Gb/s link. you would ideally have a window size of ~ 14.5MB.
>
> 4Gb/s is unrealistic.  Our narrow link is 6 Gb/s to the Clydenet MAN, and that's shared with the rest of the university.  Until recently, we had a 1 Gb/s link to central, now up to 10Gb/s to central then onto the 6 Gb/s; but we still rarely get sustained traffic over 1Gb/s.  The change in tuning parameters made little difference on transfers to RAL (Nothing that was statistically significant except a 2% improvement for a single connection).
ok., also I remembered that often multi Gb links are actually either
bundled or bonded links, and so you don't necessarily ( definmeitely
not in case of bonded, not sure with bundled) get full badwidth to a
connection. Ie a single connection is probably limited to 1Gbps.
>
>> Remember though that this should then be divided by the number of concuurent data files that you have flowing.
>
> One; the LHCb transfers don't use multiple connections, as far as we have seen.  No one else has performance expectations for WAN -> WN transfers.
>
>> You may probably already  limited by what is sert at CERN. plus you end up
>> with issues when packets aren't alowed to shrink.
>
> One of the reasons I plumped for the YAIM values is to try and match what's likely to be on the other end; that and it's pretty close to what I calculated to be good for BIC.
>
>> Ie you may well start to see issues if you were to have >296 transfers ( If i have
>> calculated it correctly.)
>
> If we have 300 simultaneous transfers from a single worker node, I have questions!  There shouldn't really be more than one or two per job slot.  On an 8 core worker node, that gives 16 as a worst case scenario.  Most of those should be going to local storage anyway, and thus not be using the full buffer sizes anyway.  Note that this is quite a different scenario from a disk pool node, where one can easily get (in our case) a hundred or so requests (in a sneak attack hammer cloud, if not in general use!).
>
> Note that the values used have a _smaller_ maximum buffer size than the default values.
>
>> What is the ping time between your WNs and your storage nodes?
>
> 0.06 ms over 1Gb Ethernet - they're all on the same switch. (no jumbo frames - it's on the TODO list.)  SSThres (i.e. metrics saving) is on, so it's likely to be picking a decent start point for local traffic, rather than flooding too hard.
>
>>
>> On 23 June 2010 12:54, Sam Skipsey <[log in to unmask]> wrote:
>>>
>>>
>>> On 23 June 2010 12:42, Christopher J.Walker <[log in to unmask]> wrote:
>>>>
>>>> Stuart Purdie wrote:
>>>>>
>>>>> To begin, the oblibitary pretty picture:
>>>>>
>>>>>
>>>>> http://lhcbweb.pic.es/DIRAC/LHCb-Production/visitor/systems/accountingPlots/dataOperation#ds9:_plotNames7:Qualitys9:_groupings6:Sources13:_timeSelectors2:-1s10:_startTimes10:2010-05-22s8:_endTimes10:2010-06-23s14:_OperationTypes14:putAndRegisters7:_Sources213:LCG.Barcelona.es,LCG.Bristol-HPC.uk,LCG.Bristol.uk,LCG.Brunel.uk,LCG.CNAF.it,LCG.Glasgow.uk,LCG.Liverpool.uk,LCG.PIC.es,LCG.Sheffield.uk,LCG.UKI-LT2-Brunel.uk,LCG.UKI-SCOTGRID-GLASGOW.uk,LCG.UNINA.it,LCG.UNIZAR.ess9:_typeNames13:DataOperatione
>>>>>
>>>>> (Hrm, that's a monster url: same thing at
>>>>> http://tinyurl.com/lhcbtransjune   That is on fixed dates, not a rolling
>>>>> 'last month')
>>>>>
>>>>> What you're looking at is the transfer attempts + failures for LHCb
>>>>> traffic across a number of sites, for about the past month.  Note that this
>>>>> is transfers, not jobs - a job can succeed after a couple of failed transfer
>>>>> attempts, so this is the most strict criterion to look at.
>>>>>
>>>>> I've included all the sites that I can see were having problems, along
>>>>> with PIC and CNAF to show the 'bad days' for comparison.
>>>>>
>>>>> The key thing to look is for Glasgow, after the 16th, when we switch from
>>>>> yellowish green (about 50%) to dark green (100% near enough).  What changed
>>>>> was I tuned the TCP stack on the worker nodes.  (Same thing YAIM does to DPM
>>>>> pool nodes).  That resolved the problem.
>>>>>
>>>>> This the systcl parameters I set:
>>>>> # TCP buffer sizes
>>>>> net.ipv4.tcp_rmem = 131072 1048576 2097152
>>>>> net.ipv4.tcp_wmem = 131072 1048576 2097152
>>>>> net.ipv4.tcp_mem = 131072 1048576 2097152
>>>>>
>>>>> net.core.rmem_default = 1048576
>>>>> net.core.wmem_default = 1048576
>>>>> net.core.rmem_max = 2097152
>>>>> net.core.wmem_max = 2097152
>>>>>
>>>>> # SACK and timestamps - turn off
>>>>> net.ipv4.tcp_dsack = 0
>>>>> net.ipv4.tcp_sack = 0
>>>>> net.ipv4.tcp_timestamps = 0
>>>>>
>>>>
>>>> Can you follow up to the list with the previous values. It isn't clear
>>>> from your mail what you increased/decreased.
>>>>
>>>
>>> The defaults are:
>>> net.ipv4.tcp_rmem = 4096 87380 4194304
>>> net.ipv4.tcp_wmem = 4096 16384 4194304
>>> net.ipv4.tcp_mem = 196608 262144 393216
>>> net.core.rmem_default = 129024
>>> net.core.wmem_default = 129024
>>> net.core.rmem_max = 131071
>>> net.core.wmem_max = 131071
>>> net.ipv4.tcp_dsack = 1
>>> net.ipv4.tcp_sack = 1
>>> net.ipv4.tcp_timestamps = 1
>>> (basically, the min, starting and max values for tcp window size were all
>>> increased by ~x10 - to the YAIM tuned values for disk servers (which happen
>>> to be a good approximation to tuned for transfers to RAL and CERN) - and
>>> sack was turned off).
>>>
>>> Sam
>>>>
>>>> Chris
>>>>
>>>>>
>>>>> Ok, so that's the what - the why is not so clear.  I was working on the
>>>>> theory that the presence of the NAT boxes represented a network
>>>>> inefficiency, and that if the transfers were given longer then they would
>>>>> compete successfully.  Therefore the approach was to try to optimise the
>>>>> transfers from the worker nodes to CERN, so that if they went a bit quicker,
>>>>> they'd complete before the timeouts.  Note that (at least for us), RAL is 12
>>>>> ms away, and CERN is 27 ms away.  The closer one is to CERN, the smaller
>>>>> effect this change should have (we might well be in the worst case here, at
>>>>> least until UKI-SCOTGRID-SHETLAND gets off the ground).
>>>>> By tuning the worker node for a Long Fat Network, which that sort of
>>>>> connect is, we get more data moved faster.  (Although the target nodes are
>>>>> tuned, TCP/IP is limited by the congestion window on both sides, hence
>>>>> tweaking the worker nodes as well.)  I've been poking at other parameters as
>>>>> well, but the parameters above worked so well that I can't find any
>>>>> differences with any others.  (It's also worth noting that these made no
>>>>> difference in transfers to or from our local SE - i.e. they don't seem to
>>>>> cause any problems even if not useful.)
>>>>>
>>>>> I'd be interested if applying this sort of tuning to worker nodes will
>>>>> have any effect at the other sites that are having transfer problems -
>>>>> Brunel, Liverpool, Sheffield and Bristol.  Also, I'd be interested on the
>>>>> round trip times between the worker nodes and CERN (i.e. through the NAT) -
>>>>> I've been traceroute www.cern.ch, and reading off the last one I can.
>>>>> Raja -  I note that Barcelona and UNIZAR both show similar (although less
>>>>> severe) effects as the UK.  Your opposite number in Spain might be
>>>>> interested in this - certainly I'm curious about their configuration:  I
>>>>> rather suspect they have NAT's and untuned worker nodes.
>>>>>
>>>>>
>>>
>>>
>
>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager