Out of memory crash of 3000 routes in BGP

Justin Cattle j at ocado.com
Thu Oct 13 10:52:37 CEST 2016


I would be:

bird_1.6.2-1~bpo8+1madhupatch1_amd64.deb


Apologies, but I just realised I forgot the step to actually apply the
patch to the file! :)
You may have realised that, and done it - but if not, just repeat the steps
again, but change the "apply patch" section to this:

# Apply patch #

cd bird-1.6.2

quilt new 1000-fixed-memory-bloating-on-kernel-merge-paths-together.patch
quilt add nest/rt-table.c
*patch -p1 <
../0001-Fixed-memory-bloating-on-kernel-merge-paths-together.patc*
quilt refresh
quilt header -e # enter a description of the patch
quilt push
quilt refresh


If you do have to do this process again, it's best to delete the directory
you did the work in, and create it again, or just do it again in another
directory starting from "# get source #"
That should prevent any associated build issues.




Cheers,
Just

On 13 October 2016 at 01:14, Madhu <informmadhu at gmail.com> wrote:

> Thanks Just. I followed your steps. I got these files. Which one I have to
> install?
>
> ls
> bird-1.6.2
> bird-bgp_1.6.2-1~bpo8+1madhupatch1_all.deb
> bird-doc_1.6.2-1~bpo8+1madhupatch1_all.deb
> bird_1.6.2-1~bpo8+1.debian.tar.xz
> bird_1.6.2-1~bpo8+1.dsc
> bird_1.6.2-1~bpo8+1madhupatch1.debian.tar.xz
> bird_1.6.2-1~bpo8+1madhupatch1.dsc
> bird_1.6.2-1~bpo8+1madhupatch1_amd64.changes
> bird_1.6.2-1~bpo8+1madhupatch1_amd64.deb
> bird_1.6.2.orig.tar.gz
>
>
> Please let me know.
>
> Thanks,
> Madhu
>
> On Wed, Oct 12, 2016 at 12:16 PM, Justin Cattle <j at ocado.com> wrote:
>
>> I'd like to, but sorry I can't really.
>>
>> I can give you a lot of pointers though - and it's good to learn
>> something about the package management :)
>>
>>
>> First, get yourself a host that is the same debian or ubuntu version that
>> you want to deploy the package on, and use it to build the package. Then
>> create a directory where you want to do the build and cd in, preferably not
>> as root.
>>
>> # setup #
>>
>> sudo apt-get install devscripts build-essential dpkg-dev quilt
>>
>> cat << END > ~/.quiltrc
>> > export QUILT_PATCHES=debian/patches
>> > export QUILT_NO_DIFF_INDEX=1
>> > export QUILT_NO_DIFF_TIMESTAMPS=1
>> > export QUILT_REFRESH_ARGS="-p ab"
>> > export QUILT_DIFF_ARGS="--color=auto"
>> > END
>>
>> sudo apt-get build-dep bird
>>
>> # get source #
>>
>> apt-get source bird
>>
>> # Apply patch #
>>
>> cd bird-1.6.2
>>
>> quilt new 1000-fixed-memory-bloating-on-kernel-merge-paths-together.patch
>> quilt add nest/rt-table.c
>> quilt refresh
>> quilt header -e # enter a description of the patch
>> quilt push
>> quilt refresh
>>
>> # Bump version with local name #
>>
>> dch -l companyname # or some other name - enter into as appropriate and
>> save the file
>>
>> # Build the package #
>>
>> dpkg-buildpackage -tc
>>
>> # That's it! #
>> cd ..
>>
>> ls -al  # you should see some packages if it worked.
>>
>>
>> Hope that helps..
>>
>>
>>
>>
>> Cheers,
>> Just
>>
>> On 12 October 2016 at 18:21, Madhu <informmadhu at gmail.com> wrote:
>>
>>> Hi just,
>>>
>>>    Is there any way you can give me your built debian package, So that I
>>> can install and check :) ?
>>>
>>> Madhu
>>>
>>> On Wed, Oct 12, 2016 at 8:37 AM, Justin Cattle <j at ocado.com> wrote:
>>>
>>>> Personally - I get the debian source package, then apply the patch to
>>>> that using quilt, bump the version with my own local identifier, and build
>>>> the new package.
>>>>
>>>>
>>>>
>>>> Cheers,
>>>> Just
>>>>
>>>> On 12 October 2016 at 16:19, Madhu <informmadhu at gmail.com> wrote:
>>>>
>>>>> How to install this patch?
>>>>>
>>>>> Madhu
>>>>>
>>>>> Sent from my iPhone
>>>>>
>>>>> > On Oct 12, 2016, at 5:27 AM, Jan Matejka <jan.matejka at nic.cz> wrote:
>>>>> >
>>>>> > Hi!
>>>>> >
>>>>> > Please try the last commit in GIT, branch master. Commit ID
>>>>> 2e7fb11a6e31324151c6db98df2fe26d2d6cffab.
>>>>> > Attaching the patch as well.
>>>>> >
>>>>> > Thank you both for reporting this issue.
>>>>> >
>>>>> > Jan
>>>>> >
>>>>> >> On 10/12/2016 02:10 PM, Justin Cattle wrote:
>>>>> >> Good stuff - once again, please let me know if you want to me test
>>>>> any patching at this end :)
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> Cheers,
>>>>> >> Just
>>>>> >>
>>>>> >> On 12 October 2016 at 13:02, Ondrej Zajicek <santiago at crfreenet.org
>>>>> <mailto:santiago at crfreenet.org>> wrote:
>>>>> >>
>>>>> >>    On Wed, Oct 12, 2016 at 12:09:17PM +0100, Justin Cattle wrote:
>>>>> >>> Are there any thoughts as to why I still see quite large memory
>>>>> usage, and
>>>>> >>> only on some [ seemingly random ] hosts ?
>>>>> >>
>>>>> >>    Hi
>>>>> >>
>>>>> >>    We are doing some testing and trying to identify the cause of
>>>>> the problem.
>>>>> >>    We found some problems and strange behavior. One of them is
>>>>> excessive
>>>>> >>    memory consumption when kernel export filters are defined.
>>>>> >>
>>>>> >>    --
>>>>> >>    Elen sila lumenn' omentielvo
>>>>> >>
>>>>> >>    Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org
>>>>> <mailto:santiago at crfreenet.org>)
>>>>> >>    OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3,
>>>>> wwwkeys.pgp.net <http://wwwkeys.pgp.net>)
>>>>> >>    "To err is human -- to blame it on a computer is even more so."
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> Notice:  This email is confidential and may contain copyright
>>>>> material of members of the Ocado Group. Opinions and views expressed in
>>>>> this message may not necessarily reflect the opinions and views of the
>>>>> members of the Ocado Group.
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> If you are not the intended recipient, please notify us immediately
>>>>> and delete all copies of this message. Please note that it is your
>>>>> responsibility to scan this message for viruses.
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> Fetch and Sizzle are trading names of Speciality Stores Limited and
>>>>> Fabled is a trading name of Marie Claire Beauty Limited, both members of
>>>>> the Ocado Group.
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> References to the “Ocado Group” are to Ocado Group plc (registered
>>>>> in England and Wales with number 7098618) and its subsidiary undertakings
>>>>> (as that expression is defined in the Companies Act 2006) from time to
>>>>> time.  The registered office of Ocado Group plc is Titan Court, 3 Bishops
>>>>> Square, Hatfield Business Park, Hatfield, Herts. AL10 9NE.
>>>>> >>
>>>>> >
>>>>> > <0001-Fixed-memory-bloating-on-kernel-merge-paths-together.patch>
>>>>>
>>>>>
>>>>
>>>> Notice:  This email is confidential and may contain copyright material
>>>> of members of the Ocado Group. Opinions and views expressed in this message
>>>> may not necessarily reflect the opinions and views of the members of the
>>>> Ocado Group.
>>>>
>>>>
>>>>
>>>> If you are not the intended recipient, please notify us immediately and
>>>> delete all copies of this message. Please note that it is your
>>>> responsibility to scan this message for viruses.
>>>>
>>>>
>>>>
>>>> Fetch and Sizzle are trading names of Speciality Stores Limited and
>>>> Fabled is a trading name of Marie Claire Beauty Limited, both members of
>>>> the Ocado Group.
>>>>
>>>>
>>>>
>>>> References to the “Ocado Group” are to Ocado Group plc (registered in
>>>> England and Wales with number 7098618) and its subsidiary undertakings (as
>>>> that expression is defined in the Companies Act 2006) from time to time.
>>>> The registered office of Ocado Group plc is Titan Court, 3 Bishops Square,
>>>> Hatfield Business Park, Hatfield, Herts. AL10 9NE.
>>>>
>>>
>>>
>>
>> Notice:  This email is confidential and may contain copyright material of
>> members of the Ocado Group. Opinions and views expressed in this message
>> may not necessarily reflect the opinions and views of the members of the
>> Ocado Group.
>>
>>
>>
>> If you are not the intended recipient, please notify us immediately and
>> delete all copies of this message. Please note that it is your
>> responsibility to scan this message for viruses.
>>
>>
>>
>> Fetch and Sizzle are trading names of Speciality Stores Limited and
>> Fabled is a trading name of Marie Claire Beauty Limited, both members of
>> the Ocado Group.
>>
>>
>>
>> References to the “Ocado Group” are to Ocado Group plc (registered in
>> England and Wales with number 7098618) and its subsidiary undertakings (as
>> that expression is defined in the Companies Act 2006) from time to time.
>> The registered office of Ocado Group plc is Titan Court, 3 Bishops Square,
>> Hatfield Business Park, Hatfield, Herts. AL10 9NE.
>>
>
>

-- 


Notice:  This email is confidential and may contain copyright material of 
members of the Ocado Group. Opinions and views expressed in this message 
may not necessarily reflect the opinions and views of the members of the 
Ocado Group. 

 

If you are not the intended recipient, please notify us immediately and 
delete all copies of this message. Please note that it is your 
responsibility to scan this message for viruses. 

 

Fetch and Sizzle are trading names of Speciality Stores Limited and Fabled 
is a trading name of Marie Claire Beauty Limited, both members of the Ocado 
Group.

 

References to the “Ocado Group” are to Ocado Group plc (registered in 
England and Wales with number 7098618) and its subsidiary undertakings (as 
that expression is defined in the Companies Act 2006) from time to time. 
 The registered office of Ocado Group plc is Titan Court, 3 Bishops Square, 
Hatfield Business Park, Hatfield, Herts. AL10 9NE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20161013/a0920e86/attachment.html>


More information about the Bird-users mailing list