From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-x22d.google.com (mail-qg0-x22d.google.com [IPv6:2607:f8b0:400d:c04::22d]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 8548D21F342 for ; Tue, 3 Mar 2015 14:39:43 -0800 (PST) Received: by mail-qg0-f45.google.com with SMTP id z107so13397026qgd.4 for ; Tue, 03 Mar 2015 14:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=QiWZUsD6Mjs/2R/dzGZkgd3Jpr0DwnW7JdeGqROrYBI=; b=fcwsc/3ZLnyOw+236kH8NY3JfzBXn5jaTn7asNVG9/EbykZr2Kd1rg7Pr53t9aVYSw kGKar5u8M2MgXsTjzz9+Y+ZxwvzBO3bQAETzoEXItNXKYmdrdiQV4WXlPQImrKAtShd9 qPUhfLYEaH9g2RvxHerRbl0IlfVMOgVK5yPL2MEmAfNrGyLVrPGHRjh8ahUeqEDG3nYK DHQRevnr8pXNfgxcXWHKk/oBybKs2LMr3KvQt4dI+GXiuGAXeJmkALSdM5XJym/PrKqS sd1Exkz1xEFNWJFXVj0TQHifFQjJre2UsjJS4XkUBP6nQPjPLMBQmdWXY7xzeW/h95bO MBSw== MIME-Version: 1.0 X-Received: by 10.140.86.199 with SMTP id p65mr1702535qgd.49.1425422382753; Tue, 03 Mar 2015 14:39:42 -0800 (PST) Received: by 10.96.191.5 with HTTP; Tue, 3 Mar 2015 14:39:42 -0800 (PST) In-Reply-To: <37283C9D-E6A5-4C2A-9079-FCC9EACDED83@gmx.de> References: <54E0AFB2.5040806@gmail.com> <87vbj3i5hz.fsf@toke.dk> <87r3tri2x3.fsf@toke.dk> <54E0CA64.7000101@gmail.com> <33C677EE-26CD-4F46-89A1-3E47702AEA5E@gmx.de> <37283C9D-E6A5-4C2A-9079-FCC9EACDED83@gmx.de> Date: Tue, 3 Mar 2015 22:39:42 +0000 Message-ID: From: Alan Jenkins To: Sebastian Moeller Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: cerowrt-devel@lists.bufferbloat.net Subject: Re: [Cerowrt-devel] [sqm-scripts] not started at boot? X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 22:40:12 -0000 On 03/03/2015, Sebastian Moeller wrote: > Hi Alan, > Excellent, now we have positive results from CC (you are running CC I > believe) and cerowrt. I'm afraid I'm running BB with this package manually installed. >> >> It still logs errors. > > In the boot log? I tend to consider these not as errors but as valid > information; as long as sqm-scripts is still being tested I want it to be > verbose, so I have an easier time actually helping people=E2=80=A6 But on= ce we agree > it is stable I will try to make it a bit more quiet=E2=80=A6 The success messages make me happy too. By errors, I meant lines like $ log.txt < grep 'Cannot find device "pppoe-wan"' | wc -l 22 presumably because /etc/init.d/sqm is still assuming pppoe-wan (or so) exists, and dies noisily because ppp hasn't started yet. >> Probably only from running the initscript first, it was just so noisy I >> thought it was still happening for every interface that came up :). I >> used `uci set system.@system[0].log_size=3D200; uci commit` to prevent l= og >> overflow. > > Now that is useful, I always thought that this is a kernel default and c= an > not be changed; so I learned something useful. openwrt apparently uses busybox logd daemon (in userspace). I discovered it doesn't use files by default and has a small buffer in memory, accessed using the `logread` command. Kernel log buffer (`dmesg` command) is separate. It can be sized using the kernel boot option... log_buf_len. https://www.kernel.org/doc/Documentation/kernel-parameters.txt Alan