Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29EB824E01D for ; Fri, 8 Aug 2025 07:37:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754638650; cv=none; b=shnbGKZxwpuAtGeN+wN8Yj7n8DeXXzqBNFZBmtcVOzXDTTBMHhlYYmTgZ0ndm6Ak0jkWsVnCYf0Obzl7zCEiEXLJn8qY/3a0ySI+l+oeERzStpcO08vW828F0DQxAFQSo6BOMTXpgyT54bLDB2fmY0nyKqST/gHsKRiwpABd6iQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754638650; c=relaxed/simple; bh=1X2D2Ztmp54QkN16m4xKHsndz774RtFkv1wOhbP1aQM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=N+j4wT8UnFzd2YKtdeIhYeAwfo9a0hF0LIKfpueS5Wnu2XYEbdR1d8cPQZEPLGc4Qa5ScN8y40fP3o96Ihr4LnSve3swghd+w93nddJUj9xhVZzJ5AJ7CP5wZGyVIJvQxdyjYcMpIxVdkynyRa7iczv1itVaRDzyMU4sgEF7aaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=c75AGfge; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=TaUAwmBU; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=c75AGfge; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=TaUAwmBU; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="c75AGfge"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="TaUAwmBU"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="c75AGfge"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="TaUAwmBU" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1AEF65BDB8; Fri, 8 Aug 2025 07:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1754638647; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=A0p43mgUNO5seTET1xEwfQoW6sHiuh2LO95EYWQKlcY=; b=c75AGfge6HHDH5jdTcEsolec6aCNXOm0BYWa3LenVugzpdfLZlD8i/CYhWo385I32XusSn qoAOiKOHTL86554C5/7u8qXwPJr8wsdhTcjgcCMW/7JzDae6uTNhusiKi/9HiUcTpKsnnb AVZqqvxfCTwqcbzOiyBocnEO9LBt2+E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1754638647; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=A0p43mgUNO5seTET1xEwfQoW6sHiuh2LO95EYWQKlcY=; b=TaUAwmBUBuggXBcN+cGS0SqatEOLWIuV+IbrWWQ6bE+cbMsPRo4UlnrEzTgDrjFyxJ8+pM 9krCte1Gjc+rJ9Bw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1754638647; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=A0p43mgUNO5seTET1xEwfQoW6sHiuh2LO95EYWQKlcY=; b=c75AGfge6HHDH5jdTcEsolec6aCNXOm0BYWa3LenVugzpdfLZlD8i/CYhWo385I32XusSn qoAOiKOHTL86554C5/7u8qXwPJr8wsdhTcjgcCMW/7JzDae6uTNhusiKi/9HiUcTpKsnnb AVZqqvxfCTwqcbzOiyBocnEO9LBt2+E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1754638647; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=A0p43mgUNO5seTET1xEwfQoW6sHiuh2LO95EYWQKlcY=; b=TaUAwmBUBuggXBcN+cGS0SqatEOLWIuV+IbrWWQ6bE+cbMsPRo4UlnrEzTgDrjFyxJ8+pM 9krCte1Gjc+rJ9Bw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 05D471392A; Fri, 8 Aug 2025 07:37:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id jozkOjaplWhZMQAAD6G6ig (envelope-from ); Fri, 08 Aug 2025 07:37:26 +0000 Message-ID: Date: Fri, 8 Aug 2025 09:37:26 +0200 Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Realtime threads delayed due to kcompactd0 To: Alexander Krabler , Hugh Dickins Cc: Frank van der Linden , Mike Galbraith , "linux-rt-users@vger.kernel.org" , "linux-mm@kvack.org" , Dennis Schimmel , Daniel Braunwarth References: <71df781c-3ef3-4b26-9ba8-93fc7d4f9eec@suse.cz> <026de9fcd4f0ed17c2df95c4f7c56b878a844012.camel@gmx.de> <25ba0d77-eb61-4efc-b2fc-73878cbd85c1@suse.cz> <33275585-f2db-4779-89f0-3ae24b455a67@suse.cz> <771a8fc0-8195-44cc-55ed-c3573d497d2d@google.com> Content-Language: en-US From: Vlastimil Babka Autocrypt: addr=vbabka@suse.cz; keydata= xsFNBFZdmxYBEADsw/SiUSjB0dM+vSh95UkgcHjzEVBlby/Fg+g42O7LAEkCYXi/vvq31JTB KxRWDHX0R2tgpFDXHnzZcQywawu8eSq0LxzxFNYMvtB7sV1pxYwej2qx9B75qW2plBs+7+YB 87tMFA+u+L4Z5xAzIimfLD5EKC56kJ1CsXlM8S/LHcmdD9Ctkn3trYDNnat0eoAcfPIP2OZ+ 9oe9IF/R28zmh0ifLXyJQQz5ofdj4bPf8ecEW0rhcqHfTD8k4yK0xxt3xW+6Exqp9n9bydiy tcSAw/TahjW6yrA+6JhSBv1v2tIm+itQc073zjSX8OFL51qQVzRFr7H2UQG33lw2QrvHRXqD Ot7ViKam7v0Ho9wEWiQOOZlHItOOXFphWb2yq3nzrKe45oWoSgkxKb97MVsQ+q2SYjJRBBH4 8qKhphADYxkIP6yut/eaj9ImvRUZZRi0DTc8xfnvHGTjKbJzC2xpFcY0DQbZzuwsIZ8OPJCc LM4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h6TE m6M14QORSWTLRg== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-0.999]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmx.de]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[google.com,gmx.de,vger.kernel.org,kvack.org,kuka.com]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo] X-Spam-Flag: NO X-Spam-Level: X-Spam-Score: -4.30 On 8/7/25 17:49, Alexander Krabler wrote: > On Thu, 7 Aug 2025 14:21, Hugh Dickins wrote: >> But another idea has just this moment occurred to me: anon THP splitting >> is another user of migration entries. Is it possible that kcompactd is >> not actually the cause of Alexander's issue, but that his RT tasks have >> (bad news! shouldn't be allowed) got anon THPs in them? > > No, we don't have transparent hugepages enabled. > (From Kconfig, this seems not even possible together with PREEMPT_RT.) > > From ftrace events (first message in this thread), we know that kcompactd0 > finally wakes our realtime thread(s). > > Given the information I got from here, the comment on the code [1] > and an older commit message [2], I suspect CMA somehow influences our problem. However, kcompactd doesn't perform CMA allocations, only compaction, in a mode that does not include ISOLATE_UNEVICTABLE. So this is weird. > If there is anything we should enable for better diagnosis (e.g. more ftrace events), > we would be willing to try that out. > > [1] https://elixir.bootlin.com/linux/v6.16/source/mm/compaction.c#L1136 > [2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e46a28790e594c0876d1a84270926abf75460f61 > > Thanks, > Alexander > > -- > KUKA Deutschland GmbH Board of Directors: Michael Jürgens (Chairman), Dirk Busch, Johan Naten, Hui Zhang Registered Office: Augsburg HRB 14914 > > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of contents of this e-mail is strictly forbidden. > > Please consider the environment before printing this e-mail.