From owner-freebsd-hackers@freebsd.org Fri Oct 5 18:01:13 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 842A610B2929 for ; Fri, 5 Oct 2018 18:01:13 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AB628AB4A for ; Fri, 5 Oct 2018 18:01:12 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-lf1-x12b.google.com with SMTP id t22-v6so9953082lfb.7 for ; Fri, 05 Oct 2018 11:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HZzqfZilUEzMcehoBN14mzKLLNWvAbyriHw2SQxEwZs=; b=ql8X5nEU4XvZRuxEIR2vjBO/j+5tK0WzS1envpxDffHD/fiGEuD7juJIdwPSJnC+kI G9Sx+Bl5JPVW9wWO1UvCeAqj9j/okGRK79GwlfSBE2B0ZUCOhCIsvvFgAiP6u6GHlyJ+ 0WB5DAm5m8nPc0k11uQWPevmAgwYeqX+ZU93+AOhJ/ToxlSFH8VvT50tI6cW4G4bBqK3 AXNMd3UQaon50z854xWTkydI9/YXF3U1fqmr6UzOMtdiT7EscLPP/BvWRyBF7L6GZrQ7 9pVS87F+A2bCoT/Xz4hfFSBoD0G1ARyhFZxxRrylGCGlb3iuvPfrDmmuyIGD8CyYqz/r UjoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HZzqfZilUEzMcehoBN14mzKLLNWvAbyriHw2SQxEwZs=; b=JYnggRIkeSC4RSFuc+JhUrWUG53HK8+FiF8goBM4VCUFGxhgOkv/P4InGiI64musKR gJU3R1bEY5FDmZdcnekAzB+U8HPH+51pixRLJzqcKoZqVZWEW7XWMObCs8iE+UGk7LQ9 rVk7YGBVdXK6LCdS1JxItLtWW55FrxyEo6qG7tn9JurnD0ZeKOkC/gUH5BeaQjh0dhZj zxMP37C25kRbyjcIkPOkxSfr+k1gMYvS++SF1LwxygsZOs6oUIqM8ztZIIowDhk6+wRH TBDvfcOsR6qi4uJJObTmPF2HGC2ulckLsOeArxgJ2IR9vCoRpv43K+dlDO+CxmzeZWNG UKOQ== X-Gm-Message-State: ABuFfohBlywlFPn/l690XjwPOvRrD2T1gjU7YLqL1h0jIM7m5b6ijVnv SWGUJJKrdEXCiCpMSMRWrMnntnGctTl6m5gkBhYuGASS X-Google-Smtp-Source: ACcGV60DSrs+CJewMAT9tGuBA0yJZ2P0DWv+nmAnrxxD45Ye9SK7Ji7aZUyQBqXFZ2pRaW1iwaqaIsjWqZPF93jXnO0= X-Received: by 2002:a19:cc97:: with SMTP id c145-v6mr7198306lfg.145.1538762471369; Fri, 05 Oct 2018 11:01:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ryan Stone Date: Fri, 5 Oct 2018 14:00:59 -0400 Message-ID: Subject: Re: Contigfree takes too much time that cuases PCIe driver unload to take up to 30 minutes To: steevanxperia@gmail.com Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2018 18:01:13 -0000 I'm not sure why configfree() would be taking a long time, but configmalloc() can be extraordinarily expensive when it needs to defragment memory to meet the request. Does your application really require a lot of physically contiguous memory? if you can restructure to not require contigmalloc() all -- maybe by using S/G DMA -- you may find your life significantly easier.