Date: Thu, 8 Dec 2016 08:30:19 +0100 From: Henning Schild Message-ID: <20161208083019.4df0c9a8@md1em3qc> In-Reply-To: <50ba3868-6953-faef-5ad5-a650c0c0ea24@numalliance.com> References: <50ba3868-6953-faef-5ad5-a650c0c0ea24@numalliance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] memory allocation performance in kernel ipipe List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?U3TDqXBoYW5l?= Ancelot Cc: "xenomai@xenomai.org" Am Wed, 7 Dec 2016 15:15:39 +0100 schrieb St=C3=A9phane Ancelot : > Hi, >=20 > I noticed very bad memory allocation performance on some of my > graphic programs (standard linux applications). >=20 > If you run any classic program, you won't sea any difference, but it > has been visible in the following context : >=20 > I have an application that allocates thousends of graphic widgets,=20 > label, input fields at startup (a data editor) . >=20 > Using the standard kernel, the applications starts very quickly. But =20 > once the ipipe patch is applied to kernel, this application makes lot > of seconds before appearing. You could profile/trace the application on both kernels and compare the profiles from both kernels. That should allow you to narrow down on the operations that are slower on ipipe. But with the high level description you gave so far, it is hard to tell what is going on. A third kernel you could try is the ipipe-patched kernel with ipipe disabled, see how that works. Henning > I am using a 3.18 kernel. >=20 > I made a diff on both standards and ipipe kernel configs : > 236a237 > > CONFIG_KPROBES_ON_FTRACE=3Dy =20 > 372a374,382 > > CONFIG_PARAVIRT=3Dy > > # CONFIG_PARAVIRT_DEBUG is not set > > # CONFIG_PARAVIRT_SPINLOCKS is not set > > # CONFIG_XEN is not set > > CONFIG_KVM_GUEST=3Dy > > # CONFIG_KVM_DEBUG_FS is not set > > # CONFIG_LGUEST_GUEST is not set > > # CONFIG_PARAVIRT_TIME_ACCOUNTING is not set > > CONFIG_PARAVIRT_CLOCK=3Dy =20 > 427,435d436 > < CONFIG_IPIPE=3Dy > < # CONFIG_IPIPE_LEGACY is not set > < CONFIG_IPIPE_CORE=3Dy > < CONFIG_IPIPE_WANT_CLOCKSOURCE=3Dy > < CONFIG_IPIPE_WANT_PTE_PINNING=3Dy > < CONFIG_IPIPE_CORE_APIREV=3D2 > < CONFIG_IPIPE_TARGET_APIREV=3D2 > < CONFIG_IPIPE_HAVE_HOSTRT=3Dy > < CONFIG_IPIPE_HAVE_VM_NOTIFIER=3Dy > 512a514,516 > > CONFIG_TRANSPARENT_HUGEPAGE=3Dy > > CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=3Dy > > # CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set =20 > 6237d6240 > < # CONFIG_IPIPE_DEBUG is not set > 6356a6360,6361 > > CONFIG_DYNAMIC_FTRACE=3Dy > > CONFIG_DYNAMIC_FTRACE_WITH_REGS=3Dy =20 > 6357a6363 > > CONFIG_FTRACE_MCOUNT_RECORD=3Dy =20 >=20 >=20 > Regards, > S.Ancelot >=20 > _______________________________________________ > Xenomai mailing list > Xenomai@xenomai.org > https://xenomai.org/mailman/listinfo/xenomai