Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5431686ybp; Mon, 14 Oct 2019 22:38:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx79pbsOgdYmTyk9adYINRIIfMkv9B9CLhNhqFLJuZtDAB7fgWs+s9nGuGr/JiBH0AQ6fv8 X-Received: by 2002:a50:cb86:: with SMTP id k6mr31576889edi.270.1571117881202; Mon, 14 Oct 2019 22:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571117881; cv=none; d=google.com; s=arc-20160816; b=qHYpr8O6qk5hY0rlVk856abf809bczKDJqXJoIJrvh+V8g5Rb8WRfH9jCAAGB4mHzx JyqlvPwE7ISUXaYL5TJRSqmPy4Zlv1VCdnpsMcodgURwBqlb3WUb0e0Wx6C7/61VHJgV OqwkStgBNE3WoNvhDUvzn3Gi2y3+vkZ335CivT0LzfA0opYacDMX/jIorll8eGyyc9tc IcJ+g2FqOQRyEDAw/YQNuN57GG1xqXevNZwvyXk7jS9MUFhu9RB4ZCzstx3kqiNlhwKp 8QGr5/E0vHfzR9/f5UCLwpfgPXQ9K/rI8z90oh+BeXIPkzGHrhlfoSJo8Z26yqoWVEHV tu1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=qimjPJ5amkrsNNiw8CoF8oGiK0RVo/BWboMmC9tPn30=; b=tDCrxJtb9CUQr99v8GfMLTkSmDmVtUpDY40Ck0cdzD6z2044SfK5wKOehmikY5xZrg U+oR7T5YDGP0WYMMwRG0Tev0Aty5FheE2vgHczVWxTQBlaWPZ3rdPNiRdS7rP3jGn5At e0mlrgQdPJ2Hdhl6S9ADZZ9yudqwa7i3lB+eCnFmWVCrAylOec0ul4zlQNouECCRBdpS QLRBrkeuFAh/s6ShWuvOkpV9/GCEMrVVIsgSxde3vPfMIkH5dvdYUqalanKBjlFgt0ID HoOwIRbpvuAxXIQxGVRmSaNdXh1+jRW1t7sRenDPBLQp617j70msvBfvCtPD05GZkCT1 x4Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id np3si12227738ejb.384.2019.10.14.22.37.37; Mon, 14 Oct 2019 22:38:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725806AbfJOEAv (ORCPT + 99 others); Tue, 15 Oct 2019 00:00:51 -0400 Received: from mail.loongson.cn ([114.242.206.163]:45052 "EHLO mail.loongson.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbfJOEAu (ORCPT ); Tue, 15 Oct 2019 00:00:50 -0400 Received: from [10.20.41.27] (unknown [10.20.41.27]) by mail (Coremail) with SMTP id QMiowPDxz2JgRKVdtuEQAA--.1S3; Tue, 15 Oct 2019 12:00:43 +0800 (CST) Subject: Re: [PATCH] MIPS: Loongson: Make default kernel log buffer size as 128KB for Loongson3 To: Huacai Chen References: <1571101656-871-1-git-send-email-yangtiezhu@loongson.cn> Cc: Paul Burton , Ralf Baechle , James Hogan , "open list:MIPS" , LKML From: Tiezhu Yang Message-ID: Date: Tue, 15 Oct 2019 12:00:25 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-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YxBIdaVFxhVjvjDU0xZFpf9x07j1ZXrUUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/2019 11:36 AM, Huacai Chen wrote: > On Tue, Oct 15, 2019 at 10:12 AM Tiezhu Yang wrote: >> When I update kernel with loongson3_defconfig based on the Loongson 3A3000 >> platform, then using dmesg command to show kernel ring buffer, the initial >> kernel messages have disappeared due to the log buffer is too small, it is >> better to change the default kernel log buffer size from 16KB to 128KB. >> >> Signed-off-by: Tiezhu Yang >> --- >> arch/mips/configs/loongson3_defconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs/loongson3_defconfig >> index 90ee008..3aa2201 100644 >> --- a/arch/mips/configs/loongson3_defconfig >> +++ b/arch/mips/configs/loongson3_defconfig >> @@ -12,7 +12,7 @@ CONFIG_TASKSTATS=y >> CONFIG_TASK_DELAY_ACCT=y >> CONFIG_TASK_XACCT=y >> CONFIG_TASK_IO_ACCOUNTING=y >> -CONFIG_LOG_BUF_SHIFT=14 >> +CONFIG_LOG_BUF_SHIFT=17 > Hi, Tiezhu, > > Why you choose 128KB but not 64KB or 256KB? I found 64KB is enough for > our cases. And if you really need more, I think 256KB could be better > because there are many platforms choose 256KB. Hi Huacai, Thanks for your reply and suggestion, I will send a v2 patch. Thanks, Tiezhu Yang > > Huacai > >> CONFIG_MEMCG=y >> CONFIG_MEMCG_SWAP=y >> CONFIG_BLK_CGROUP=y >> -- >> 2.1.0 >> >>