Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5430850ybp; Mon, 14 Oct 2019 22:36:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAwtuyCwHNvFRF0mlaSGVqgbT7qkUFaXY4tWww033ZKMt6ixPMpcW4FNZBVXtyJkvUnR3N X-Received: by 2002:a17:906:fcce:: with SMTP id qx14mr32890605ejb.186.1571117818279; Mon, 14 Oct 2019 22:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571117818; cv=none; d=google.com; s=arc-20160816; b=dGNZvQtaB+YtG+2YmcEY7NBtqichUA2W6pjP37WHdTSj0CN3teCYV+HFigYHiTsXK9 vCcQ2a7yaawhrsAO/gNBaVy9yMbKN8JRdi6mi3/aLBYR8+yWx/bJIP/TfBeQv5K927wY if+GgbjxztVEkrIy+USC8YYwl193oXBdkuy447W+DwYp6BIVNrL3aoxGzd+UpjsZg5Mu JNP1IYCQzs4rNBm3y2h9MTr4ggidUzXDXhA22OOYUOvpo24puheGN32DzzvuCdrr9Sfw NC2CVtxtx3jmXtFLemI4qeam08n/GTelj+y2XmfrKQoB5STWY2FEqGWGpQPjrCnXJTXL ZG+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=zhEjQGNeUYnva0C6Q5TMD839svsRDx2jkIkGQy4YWS4=; b=id56upkdDzBLaCX5hU6RFbJeL2xFuB2xso28/jkxspzbnmwBE26uJsUI8mi0zmYjyq l2Z7qaWdRIyQj4irnt97/0PIX5pqtluTVhlzjfCGMdiKGcqXyO76h4cHQGW6iUe7qKNa zy+v/wcPHHJUaPuRo+3zFCYxTyQEbIAtZl0dAWmcFyad88rD8OYUpVkbzZE+GUZx3XlU RSf48HcfGHWzC+0AbcXw7OFT6mdefQCg7vmzxDg7XcFxCWtQSqflRGftZlWQMgJ4SZcC DOBpVR4xv3BoOyzlZbnjG14Yw1Wr21SI7eHnjWbddVUPJtfF12HbRgXTBsXdpv5S3jqi 991A== 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 k9si13753153edb.56.2019.10.14.22.36.35; Mon, 14 Oct 2019 22:36:58 -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 S1727874AbfJODbk (ORCPT + 99 others); Mon, 14 Oct 2019 23:31:40 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:35570 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfJODbk (ORCPT ); Mon, 14 Oct 2019 23:31:40 -0400 Received: by mail-io1-f67.google.com with SMTP id q10so42795031iop.2; Mon, 14 Oct 2019 20:31:39 -0700 (PDT) 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=zhEjQGNeUYnva0C6Q5TMD839svsRDx2jkIkGQy4YWS4=; b=Q29zXeYiB8XHeZ1EqJMpyBXIhr7P1bR8RsUvqgKC0ZGwwOccYqrk29sfcD4ab3Yjgm II7djmY7O8yVxx0Cnj3N3j0anX0qJFH2o7lqsOFrvZ+AtuB51dg51ujml9xofT6yNvlM fGuaGlTNYoMlAwsy7lRt5Y1aOvNCYknmt68C95fiTpXoytGiJ/kQdELL0l6/oN0ONpBU q5l6h0D9RRNOld4kNz/c8PGGgUpWL/nrDsAOEuB1EJoSJKlwPv71FdFaTDbwHQafPosO JZIjIBvvvKR/YdUncmp+2+ID3urmvALLvIvbvULDJCvlNwWzw1JvHsCDFFr+4U89Sj5C nq5g== X-Gm-Message-State: APjAAAUOyW+vgr9UGlmj/YCArZzV1d+zxRLkTZC4558Oft3mWiJkIsGB yjCyT7mtZ45uvAInodwr5eeQyHzbPeBvmBMiS8M= X-Received: by 2002:a5d:9c03:: with SMTP id 3mr11251986ioe.134.1571110298671; Mon, 14 Oct 2019 20:31:38 -0700 (PDT) MIME-Version: 1.0 References: <1571101656-871-1-git-send-email-yangtiezhu@loongson.cn> In-Reply-To: <1571101656-871-1-git-send-email-yangtiezhu@loongson.cn> From: Huacai Chen Date: Tue, 15 Oct 2019 11:36:59 +0800 Message-ID: Subject: Re: [PATCH] MIPS: Loongson: Make default kernel log buffer size as 128KB for Loongson3 To: Tiezhu Yang Cc: Paul Burton , Ralf Baechle , James Hogan , "open list:MIPS" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Huacai > CONFIG_MEMCG=y > CONFIG_MEMCG_SWAP=y > CONFIG_BLK_CGROUP=y > -- > 2.1.0 > >