From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Orp-00043G-9e for qemu-devel@nongnu.org; Thu, 09 Jan 2014 18:18:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1Oro-000574-Ef for qemu-devel@nongnu.org; Thu, 09 Jan 2014 18:18:25 -0500 Received: from speedy.comstyle.com ([2001:470:1d:8c::2]:14622 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Oro-00054D-9k for qemu-devel@nongnu.org; Thu, 09 Jan 2014 18:18:24 -0500 Message-ID: <52CF2E2F.4060005@comstyle.com> Date: Thu, 09 Jan 2014 18:18:07 -0500 From: Brad Smith MIME-Version: 1.0 References: <1389304508-10100-1-git-send-email-steven@uplinklabs.net> <52CF2561.7050105@redhat.com> In-Reply-To: <52CF2561.7050105@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Steven Noonan Cc: Steven Noonan , qemu-devel@nongnu.org, Anthony Liguori On 09/01/14 5:40 PM, Paolo Bonzini wrote: > Il 09/01/2014 22:55, Steven Noonan ha scritto: >> From: Steven Noonan >> >> The -fstack-protector flag family is useful for ensuring safety and for >> debugging, but has a performance impact. Here's a boot time comparison between >> a QEMU build of qemu-system-arm with and without the -fstack-protector-all >> flag: >> >> # WITHOUT -fstack-protector-all >> [root@localhost ~]# systemd-analyze >> Startup finished in 1.744s (kernel) + 11.345s (initrd) + 47.164s (userspace) = 1min 255ms >> >> # WITH -fstack-protector-all >> [root@localhost ~]# systemd-analyze >> Startup finished in 1.843s (kernel) + 12.262s (initrd) + 1min 3.480s (userspace) = 1min 17.587s > > Can you try -fstack-protector-strong? > > Probably the right thing to do is to pick in order > -fstack-protector-strong, -fstack-protector, and nothing. +1 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.