From owner-freebsd-hackers@freebsd.org Sat Oct 27 06:52: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 25E4B10DC5C1 for ; Sat, 27 Oct 2018 06:52:13 +0000 (UTC) (envelope-from steevanxperia@gmail.com) Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) (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 9D5B181312 for ; Sat, 27 Oct 2018 06:52:12 +0000 (UTC) (envelope-from steevanxperia@gmail.com) Received: by mail-ot1-x342.google.com with SMTP id c32so3102234otb.8 for ; Fri, 26 Oct 2018 23:52: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=/zgqvBk1+KTF0wNV/9rzEB09yWDQML/lLvPOZRQFf9M=; b=Jbo/PDf/TAAvQwpmVoc63g4Ch9d6QNFEUE6FxOkYGJVDimcfxxhyTH/WKgcXOJlUBe s/TAgIRMz4jOmjTae2gVqAWzhgmKgVr2faIfFnyUj4bkFx7+pj/KlJZdeBbKFDCojiYb xCOtls3rVlEw/4U1RPc7vQww0e/UH9N66PVKCBq9JcLkuXE425svvqEBMg8xFMkDXHpa Rc5S2upzHg+Px/D7ahoTA7JdaGTxLyHcOrZ5USn8792o0FS42/Tp4BihVMej/FwFrtZP lj+HwBXKfHHqH11jiuA6lLodC4Y25TmjFUeCgw/c8rGFPzaufTfoO6YMccNWthlqplXi IJbg== 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=/zgqvBk1+KTF0wNV/9rzEB09yWDQML/lLvPOZRQFf9M=; b=bimq2suD86ndqTuwBKVH30lZad0Ji/1J6L1KBqsmnqI5P+Lp9fzyOTq2IqZsDtITBw v9uaRgVDoOX1Qvq2PjJFWOpewSIIS1u9tTiNObzHMPHIrv0wAjfZS0fqqgF2bmhF53wy YQqB9WN1lpIFmqRjrZx+EP66BtnRUseGWb8pl78fwOxb0ctREBlscnnI8Xz9c3zYudds y7pn/O9K66Zq3jnOAUvl74ho+i65bbs+AIp2NyPTVsKHhYrCou53tB8s2rLTLnfLMzp4 srVn1MmSVrK3uHJhg8Zjq2a8GV0iDBVWMeQ4V5aptLYiEmBDHsoywYwsuKIR47q+gMB1 DnvA== X-Gm-Message-State: AGRZ1gI0mJakv9i35RJOoJUZyYNr59JCRirLvh0rgXmTuBsIukIPteAB DrzHAn/HE2ypMP2yMks84umqBMTCLfTYTcDUOeQ= X-Google-Smtp-Source: AJdET5fhkHYwjymL2F0SYNwQdO5//UFTeXGZVe+zowWhp4GeGx+nxm+w8SAFhDyoBipq32MsHWihH4lkYFx9o3Sqck4= X-Received: by 2002:a9d:420b:: with SMTP id q11mr3847530ote.130.1540623131762; Fri, 26 Oct 2018 23:52:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Steevan Rodrigues Date: Sat, 27 Oct 2018 12:22:00 +0530 Message-ID: Subject: Re: Contigfree takes too much time that cuases PCIe driver unload to take up to 30 minutes To: rysto32@gmail.com Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2018 06:52:13 -0000 Yes , it is contigfree that is taking too much time. ( Contigfree is taking almost 5x to 10x more time than contigmalloc ) However, I see this issue only on a SuperMicro Server which has Xeon Gold CPU with 10 cores ( dual CPU i.e total 20 cores). So I am wondering whether FreeBSD has performance issues on mutlicore ( more than 16 cores) servers ? Has anyone come across issues like this? Thanks Steevan On Fri, Oct 5, 2018 at 11:31 PM Ryan Stone wrote: > 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. >