{"action":"created","issue":{"url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/652","repository_url":"https://api.github.com/repos/Exa-Networks/exabgp","labels_url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/652/comments","events_url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/652/events","html_url":"https://github.com/Exa-Networks/exabgp/issues/652","id":235033685,"number":652,"title":"performance of RIB for different AFs","user":{"login":"adrian62","id":25883082,"avatar_url":"https://avatars0.githubusercontent.com/u/25883082?v=3","gravatar_id":"","url":"https://api.github.com/users/adrian62","html_url":"https://github.com/adrian62","followers_url":"https://api.github.com/users/adrian62/followers","following_url":"https://api.github.com/users/adrian62/following{/other_user}","gists_url":"https://api.github.com/users/adrian62/gists{/gist_id}","starred_url":"https://api.github.com/users/adrian62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrian62/subscriptions","organizations_url":"https://api.github.com/users/adrian62/orgs","repos_url":"https://api.github.com/users/adrian62/repos","events_url":"https://api.github.com/users/adrian62/events{/privacy}","received_events_url":"https://api.github.com/users/adrian62/received_events","type":"User","site_admin":false},"labels":[{"id":53841275,"url":"https://api.github.com/repos/Exa-Networks/exabgp/labels/bug","name":"bug","color":"fc2929","default":true},{"id":53841277,"url":"https://api.github.com/repos/Exa-Networks/exabgp/labels/feature-request","name":"feature-request","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"thomas-mangin","id":1227755,"avatar_url":"https://avatars3.githubusercontent.com/u/1227755?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-mangin","html_url":"https://github.com/thomas-mangin","followers_url":"https://api.github.com/users/thomas-mangin/followers","following_url":"https://api.github.com/users/thomas-mangin/following{/other_user}","gists_url":"https://api.github.com/users/thomas-mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-mangin/subscriptions","organizations_url":"https://api.github.com/users/thomas-mangin/orgs","repos_url":"https://api.github.com/users/thomas-mangin/repos","events_url":"https://api.github.com/users/thomas-mangin/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-mangin/received_events","type":"User","site_admin":false},"assignees":[{"login":"thomas-mangin","id":1227755,"avatar_url":"https://avatars3.githubusercontent.com/u/1227755?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-mangin","html_url":"https://github.com/thomas-mangin","followers_url":"https://api.github.com/users/thomas-mangin/followers","following_url":"https://api.github.com/users/thomas-mangin/following{/other_user}","gists_url":"https://api.github.com/users/thomas-mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-mangin/subscriptions","organizations_url":"https://api.github.com/users/thomas-mangin/orgs","repos_url":"https://api.github.com/users/thomas-mangin/repos","events_url":"https://api.github.com/users/thomas-mangin/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-mangin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Exa-Networks/exabgp/milestones/2","html_url":"https://github.com/Exa-Networks/exabgp/milestone/2","labels_url":"https://api.github.com/repos/Exa-Networks/exabgp/milestones/2/labels","id":413423,"number":2,"title":"4.0","description":"","creator":{"login":"thomas-mangin","id":1227755,"avatar_url":"https://avatars3.githubusercontent.com/u/1227755?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-mangin","html_url":"https://github.com/thomas-mangin","followers_url":"https://api.github.com/users/thomas-mangin/followers","following_url":"https://api.github.com/users/thomas-mangin/following{/other_user}","gists_url":"https://api.github.com/users/thomas-mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-mangin/subscriptions","organizations_url":"https://api.github.com/users/thomas-mangin/orgs","repos_url":"https://api.github.com/users/thomas-mangin/repos","events_url":"https://api.github.com/users/thomas-mangin/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-mangin/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":13,"state":"open","created_at":"2013-08-28T09:37:07Z","updated_at":"2017-06-11T10:38:16Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-06-10T23:55:23Z","updated_at":"2017-06-15T00:00:28Z","closed_at":null,"body":"##### ISSUE TYPE\r\nperformance enhancement\r\n\r\n##### OS\r\nUbuntu 16.04LTS 64bit\r\n\r\n##### VERSION\r\n<!--- Paste verbatim the output from “exabgp --version” between quotes below -->\r\n```\r\n3.4.18\r\n```\r\n\r\n##### ENVIRONMENT \r\n```\r\n\r\n```\r\n##### CONFIGURATION\r\n```\r\n\r\n```\r\n##### SUMMARY\r\nSending route updates over the API slows down as the RIB-out grows for AF vpnv6. With an empty RIB-out I measured a rate ~750/second. When the RIB is at 100K updates are processed at 1/second.\r\nConversely, for vpnv4 I measured ~1200/sec with the empty RIB and up to 100K entries, no noticeable slowdown.\r\n\r\n##### STEPS TO REPRODUCE\r\nDefine at least one peer for the AF under test and measure the rate of processing routes injected through the API and sent towards the peer.\r\n\r\n\r\n##### EXPECTED RESULTS\r\nI would expect the performance to be closer between the AFs vpnv4 and vpnv6, understanding that vpnv6 will cost more to process. \r\n\r\n##### ACTUAL RESULTS\r\n\r\n\r\n##### IMPORTANCE\r\nBlocker for introducing the software in a production environment for AF vpnv6.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/comments/308591022","html_url":"https://github.com/Exa-Networks/exabgp/issues/652#issuecomment-308591022","issue_url":"https://api.github.com/repos/Exa-Networks/exabgp/issues/652","id":308591022,"user":{"login":"adrian62","id":25883082,"avatar_url":"https://avatars0.githubusercontent.com/u/25883082?v=3","gravatar_id":"","url":"https://api.github.com/users/adrian62","html_url":"https://github.com/adrian62","followers_url":"https://api.github.com/users/adrian62/followers","following_url":"https://api.github.com/users/adrian62/following{/other_user}","gists_url":"https://api.github.com/users/adrian62/gists{/gist_id}","starred_url":"https://api.github.com/users/adrian62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrian62/subscriptions","organizations_url":"https://api.github.com/users/adrian62/orgs","repos_url":"https://api.github.com/users/adrian62/repos","events_url":"https://api.github.com/users/adrian62/events{/privacy}","received_events_url":"https://api.github.com/users/adrian62/received_events","type":"User","site_admin":false},"created_at":"2017-06-15T00:00:28Z","updated_at":"2017-06-15T00:00:28Z","body":"Two profiel files attached, one was obtained before the issue was recreated, to serve as a baseline; the second is with the issue recreated. Initially we bring up exabgp and send 100K vpnv6 route commands on the API; after we see that all routes have been successfully delivered to the peer defined in the configuration and things quieted down we send again the same set of routes on the API. That is the trigger for the issue, the exabgp process begins consuming most of the CPU and processes very slowly.\r\n\r\n[afxprofile-goodrun.txt](https://github.com/Exa-Networks/exabgp/files/1076212/afxprofile-goodrun.txt)\r\n[afxprofile-issuecreated.txt](https://github.com/Exa-Networks/exabgp/files/1076211/afxprofile-issuecreated.txt)\r\n\r\n\r\n"}}
{"actor":{"display_login":"adrian62"}}