From owner-freebsd-mips@FreeBSD.ORG Sun Jul 21 18:44:33 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9DFF027B; Sun, 21 Jul 2013 18:44:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) by mx1.freebsd.org (Postfix) with ESMTP id E29E4D00; Sun, 21 Jul 2013 18:44:32 +0000 (UTC) Received: by mail-wg0-f51.google.com with SMTP id e11so5346552wgh.30 for ; Sun, 21 Jul 2013 11:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=Eb13jf3sz1Uoi9eXNJ4ulRrUlCUd/3fpJDIrSVmEkS0=; b=0tkK/ikDzVWV0yFxyxXi4liriC5DAaMT3Zh7vo7mLA6jh/QplHrIlEQYtXO+KebbsO W8Tt4x/pehRHx9IK7O+p89wNjpBIryGRr+DS+R4kadlhT0Kd84gR31+wI1NCtAkroxQa 93wbeZjGkbVj0IMLoQ3nY8s239Vgyhp3LVJleY2fMDZ5YnTHzDnoTyiuSykfKWXPytjy icRXCvG1/hxpZRDVCEjetFpVEzusi9cEVGDPO8VeUFwfjtkNSe0Dj9sxnqZGnU1jQ33U DHZlrmVKoNDHeMaujJMdBLi3mUWFuTSLDKX88eWsgjKELwztPhLcF1Llu1yslFE1VihZ aedQ== MIME-Version: 1.0 X-Received: by 10.180.82.196 with SMTP id k4mr27998801wiy.0.1374432272124; Sun, 21 Jul 2013 11:44:32 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Sun, 21 Jul 2013 11:44:32 -0700 (PDT) Date: Sun, 21 Jul 2013 11:44:32 -0700 X-Google-Sender-Auth: bLHUKXR_nX8sMtjtUKplT3JA42g Message-ID: Subject: Can we undo the octeon hack? From: Adrian Chadd To: freebsd-mips@freebsd.org, Warner Losh , Juli Mallett Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 18:44:33 -0000 Hi Juli/Warner, Is it possible to undo this particular hack, and allow these values to be overridden in the kernel config files? from kern.pre.mk CFLAGS= ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS} CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h .if ${COMPILER_TYPE} != "clang" CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} .if ${MACHINE_CPUARCH} != "mips" CFLAGS+= --param inline-unit-growth=100 CFLAGS+= --param large-function-growth=1000 .else # XXX Actually a gross hack just for Octeon because of the Simple Executive. CFLAGS+= --param inline-unit-growth=10000 CFLAGS+= --param large-function-growth=100000 CFLAGS+= --param max-inline-insns-single=10000 .endif .endif I'd like to be able to experiment with different inline settings in order to try and squeeze kernels down to be smaller. Thanks! -adrian