Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D46010657 for ; Mon, 27 Apr 2015 11:01:44 +0000 (UTC) Received: (qmail 82508 invoked by uid 500); 27 Apr 2015 11:01:39 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 82473 invoked by uid 500); 27 Apr 2015 11:01:39 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 82463 invoked by uid 500); 27 Apr 2015 11:01:39 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 82460 invoked by uid 99); 27 Apr 2015 11:01:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2015 11:01:39 +0000 Date: Mon, 27 Apr 2015 11:01:39 +0000 (UTC) From: "Rohit Yadav (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (CLOUDSTACK-1309) Large guest subnets downgrade performance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-1309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rohit Yadav reassigned CLOUDSTACK-1309: --------------------------------------- Assignee: Rohit Yadav (was: Prasanna Santhanam) > Large guest subnets downgrade performance > ----------------------------------------- > > Key: CLOUDSTACK-1309 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1309 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Management Server > Affects Versions: pre-4.0.0 > Environment: CloudStack version: 3.0.5.20120904142539 > MySQL server version: 5.1.61-4.el6 > Reporter: Vladimir Ostrovsky > Assignee: Rohit Yadav > Fix For: 4.4.3 > > Attachments: Large guest subnets in CloudStack.jpg > > > When guest network / VLAN is defined in CloudStack, a separate record is created in the cloud.user_ip_address table for each address in the range, even if it isn't really allocated. > As a result, if a very wide subnet is defined (say, Class B), then the table contains at least 65534 records. > On a system with 5 such Class B VLANs defined, the size of the table grew to more than 327670 records. This caused mysqld to spend about 95-99% of its time in Waiting state and efficiently stuck the CloudStack. > top - 11:58:43 up 2:25, 3 users, load average: 2.91, 2.71, 2.21 > Tasks: 145 total, 1 running, 144 sleeping, 0 stopped, 0 zombie > Cpu0 : 1.8%us, 0.4%sy, 0.0%ni, 1.8%id, 95.7%wa, 0.0%hi, 0.4%si, 0.0%st > When I tried to delete such network, the operation lasted about an hour. > It obviously doesn't seem to be limitation of MySQL itself; I suspect that CloudStack's algorythms working with this table are pretty inefficient and aren't built to the case of huge number of addresses. Am I right? -- This message was sent by Atlassian JIRA (v6.3.4#6332)