From: Geert Uytterhoeven <geert.uytterhoeven@gmail.com>
To: lancetag@luminet.net
Cc: linux-m68k@vger.kernel.org
Subject: Re: m68k 2.6.26-1 vs 2.4.30 comparison
Date: Sun, 3 May 2009 13:08:06 +0200 [thread overview]
Message-ID: <10f740e80905030408p38f87e09ueabc45ef98d4a88f@mail.gmail.com> (raw)
In-Reply-To: <20090503072811.GB3179@luminet.net>
On Sun, May 3, 2009 at 09:28, Lance Tagliapietra <lancetag@luminet.net> wrote:
> b). My custom 2.4.30 kernel size is about 750K uncompressed. With setting the options to
> remove support for hardware that I don't have and features that I don't need, I still
> came up with a kernel of 2.7M. The goal is to have the smallest footprint kernel possible.
Yeah, minimum kernel size has increased :-(
> c). The 2.6.26 kernel seems to want to keep more memory free and hit the swap much more
> than the 2.4.30 kernel according to vmstat. Under 2.4.30 I see the free memory go as low
> as about 200K, and it will remain at that level as long as is necessary. Under 2.6.26,
> the free memory stays at about 800K, and if it drops below that, it will come back to that
> level relatively quickly.
As memory consumption is general. I didn't do exact measurements, but
2.6 consumes ca. 1.5 MiB
more on my A4000 (with 12 MiB of fast RAM). Booting and running Debian
is slow, while I used to
have more daemons installed, in a time the machine was actually used
as a mailserver for 70 people,
some of which read their email by logging in and running pine...
> d). The real time clock came up on the worng month, going from 2.4.30 to 2.6.26 (or 28),
> March vs April, in this case.
That's an interesting one...
In 2.4.30, you have both a2000_gettod() (for boot time setting), which does:
*monp = tod_2000.month1 * 10 + tod_2000.month2;
and amiga_hwclk() (for /dev/rtc), which does:
t->tm_mon = tod_2000.month1 * 10 + tod_2000.month2 - 1;
In 2.6.29, you only have a2000_hwclk(), which does
t->tm_mon = tod_2000.month1 * 10 + tod_2000.month2 - 1;
The data returned by a2000_gettod() is converted to seconds using mktime(),
which assumes months are in the range 1..12.
amiga_hwclk() and a2000_hwclk() both use struct rtc_time. This should
be similar to
struct tm in <time.h>, where the months are in the range 0..11.
Both rtc_proc_output()/gen_rtc_proc_output() (2.4.30) and
rtc_proc_show() (2.6.29) do
print tm.tm_mon + 1 to make them be in the range 1..12.
So at first sight, I don't see where the bug is...
What does `hwlock -ur` say, on both 2.4.30 and 2.6.29?
> Questions:
>
> e). Is there an option which tells the kernel the minimum amount of free RAM to maintain
> as I describe in (c) above? RAM is relatively precious in my m68k environment, and having
> 500k being held in reserve seems a bit much?
Probably one of those swappiness parameters under /sys. Don't ask me
which one...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-05-03 11:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-03 7:28 m68k 2.6.26-1 vs 2.4.30 comparison Lance Tagliapietra
2009-05-03 11:08 ` Geert Uytterhoeven [this message]
2009-05-15 2:37 ` Lance Tagliapietra
2009-05-15 9:31 ` Andreas Schwab
2009-05-15 9:57 ` Geert Uytterhoeven
2009-05-15 17:02 ` Amiga RTC kernel config [was: Re: m68k 2.6.26-1 vs 2.4.30 comparison] Lance Tagliapietra
2009-05-15 20:05 ` Lance Tagliapietra
2009-05-06 6:44 ` m68k 2.6.26-1 vs 2.4.30 comparison Kolbjørn Barmen
2009-05-06 17:45 ` Lance Tagliapietra
2009-05-07 2:37 ` Michael Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10f740e80905030408p38f87e09ueabc45ef98d4a88f@mail.gmail.com \
--to=geert.uytterhoeven@gmail.com \
--cc=lancetag@luminet.net \
--cc=linux-m68k@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox