From: Trammell Hudson <hudson@osresearch.net>
To: linux-kernel@vger.kernel.org
Subject: initramfs fails for medium sized cpio archives
Date: Tue, 18 Mar 2003 18:11:17 -0700 [thread overview]
Message-ID: <20030319011116.GK8263@osbox.osresearch.net> (raw)
[ Please cc me on any replies. Thanks! ]
I'm trying to get 2.5.64 to load my initramfs cpio archive and
have run into a problem with memory allocation during the
unpacking.
It seems that page_writeback_init() does not get called before
populate_root(), so total_pages in mm/page-writeback.c is still
zero rather than being initialized to nr_free_pagecache_pages().
The symptom is that after about 300 kb of files, balance_dirty_pages()
is called. This then calls get_dirty_limits() that computes
unmapped_ratio = 100 - (ps->nr_mapped * 100) / total_pages;
I've added a sanity check in get_dirty_limits() that initialized
total_pages if it is still zero and things seem to work, but
should some of the memory management modules be initialized first?
The kernel is booting on an Athlon and compiled with gcc 3.2.2.
The cpio archive is uClibc based and is about 600 k in size.
I created it with the following command:
find . \
| cpio -H crc -ov \
| gzip
> ../linux-2.5.64/usr/initramfs_data.cpio.gz
Trammell
--
-----|----- hudson@osresearch.net W 240-283-1700
*>=====[]L\ hudson@rotomotion.com M 505-463-1896
' -'-`- http://www.swcp.com/~hudson/ KC5RNF
next reply other threads:[~2003-03-19 1:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-19 1:11 Trammell Hudson [this message]
2003-03-19 1:07 ` Greg KH
2003-03-19 2:03 ` Andrew Morton
2003-03-20 2:12 ` Trammell Hudson
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=20030319011116.GK8263@osbox.osresearch.net \
--to=hudson@osresearch.net \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®