From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1042DC4332F for ; Tue, 7 Nov 2023 19:32:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343873AbjKGTcT (ORCPT ); Tue, 7 Nov 2023 14:32:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232970AbjKGTcS (ORCPT ); Tue, 7 Nov 2023 14:32:18 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 021E7D4A for ; Tue, 7 Nov 2023 11:32:16 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2890C433C8; Tue, 7 Nov 2023 19:32:13 +0000 (UTC) Date: Tue, 7 Nov 2023 14:32:16 -0500 From: Steven Rostedt To: Joel Fernandes Cc: Daniel Bristot de Oliveira , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, Luca Abeni , Tommaso Cucinotta , Thomas Gleixner , Vineeth Pillai , Shuah Khan , Phil Auld Subject: Re: [PATCH v5 6/7] sched/deadline: Deferrable dl server Message-ID: <20231107143216.170ca582@gandalf.local.home> In-Reply-To: <20231107125434.284c44da@gandalf.local.home> References: <20231107114732.5dd350ec@gandalf.local.home> <20231107123540.69038c6c@gandalf.local.home> <20231107125434.284c44da@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just got this too (with the 20% we talked about on IRC). migrate-991 6..... 713.996237: print: tracing_mark_write: thread 7 iter 3 sleeping The above is 991 in userspace writing to trace_marker migrate-991 6d..2. 713.996251: bprint: __schedule: Pick userspin:973:120 I added the above printk in the core pick_next_task(). migrate-991 6d..2. 713.996254: sched_switch: migrate:991 [90] S ==> userspin:973 [120] We switch to userspin for just 16 microseconds, and notice, NEED_RESCHED is not set. userspin-973 6dN.2. 713.996270: bprint: pick_task_rt: Pick RT migrate:988:93 The above printk is in pick_next_task_rt(), and NEED_RESCHED is now set! userspin-973 6dN.2. 713.996271: bprint: __schedule: Pick migrate:988:93 userspin-973 6d..2. 713.996272: sched_switch: userspin:973 [120] R ==> migrate:988 [93] I'll add your latest patch and see if that's different. I'll also test this without any of the patches first. -- Steve