From: "Alex J Lennon" <ajlennon@arcom.co.uk>
To: "Ian Campbell" <icampbell@arcom.co.uk>
Cc: "Linux MTD Mailing List" <linux-mtd@lists.infradead.org>
Subject: RE: [Fwd: Re: Caching of reads]
Date: Fri, 16 Nov 2001 12:04:24 -0600 [thread overview]
Message-ID: <002e01c16ec9$1fdddc80$3e03010a@arcom.cc> (raw)
In-Reply-To: <1005926529.15603.29.camel@LinuxDev>
>Strange. JFFS2 doesn't do caching - that's supposed to be handle by the
>Linux VFS/VM. But set CONFIG_JFFS2_FS_DEBUG=1 and
>echo 9 > /proc/sys/kernel/printk, then see what it's actually being asked
>to read each time.
An strace seems to show it's related to the fork(), shortly after the fork()
?
-Alex
--- SIGCHLD (Child exited) ---
wait4(-1, 0xbffff840, WNOHANG, NULL) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x806c32c, [], 0x4000000}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/bin/sleep", <7>Node read from 00d9d8f4: node_crc f3b6e771, calculated
CRC
f3b6e771. dsize 7, csize 7, offset 0, buf c3be1ea0
{st_mode=S_IFREG|0755, st_size=132432, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
fork(<7>Node read from 00d9d8f4: node_crc f3b6e771, calculated CRC f3b6e771.
dsi
ze 7, csize 7, offset 0, buf c3be1ea0
<7>Node read from 00cec5c0: node_crc b16a4fa6, calculated CRC b16a4fa6.
dsize b,
csize b, offset 0, buf c3beec60
<7>Node read from 00c55d1c: node_crc 544bdb58, calculated CRC 544bdb58.
dsize d,
csize d, offset 0, buf c3be1ea0
) = 841
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x806c32c, [], 0x4000000}, {SIG_DFL}, 8) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 841
rt_sigprocmask(SIG_BLOCK, [CHLD TTOU], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) ---
wait4(-1, 0xbffff840, WNOHANG, NULL) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL}, {0x806c32c, [], 0x4000000}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat("/bin/sleep", <7>Node read from 00d9d8f4: node_crc f3b6e771, calculated
CRC
f3b6e771. dsize 7, csize 7, offset 0, buf c3be1ea0
{st_mode=S_IFREG|0755, st_size=132432, ...}) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
fork(<7>Node read from 00d9d8f4: node_crc f3b6e771, calculated CRC f3b6e771.
dsi
ze 7, csize 7, offset 0, buf c3be1ea0
<7>Node read from 00cec5c0: node_crc b16a4fa6, calculated CRC b16a4fa6.
dsize b,
csize b, offset 0, buf c3beec60
<7>Node read from 00c55d1c: node_crc 544bdb58, calculated CRC 544bdb58.
dsize d,
csize d, offset 0, buf c3be1ea0
) = 842
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x806c32c, [], 0x4000000}, {SIG_DFL}, 8) = 0
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 842
rt_sigprocmask(SIG_BLOCK, [CHLD TTOU], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
_____________________________________________________________________
The message in this transmission is sent in confidence for the attention of the addressee only and should not be disclosed to any other party. Unauthorised recipients are requested to preserve this confidentiality. Please advise the sender if the addressee is not resident at the receiving end.
This message has been checked for all viruses by MessageLabs Virus Control Centre.
Company registered in England No. 1608562.
Registered Office: Unit 8, Clifton Road, Cambridge, CB1 7EA, United Kingdom, Tel: 01223 411200.
next parent reply other threads:[~2001-11-16 17:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1005926529.15603.29.camel@LinuxDev>
2001-11-16 18:04 ` Alex J Lennon [this message]
2001-11-16 22:05 ` [Fwd: Re: Caching of reads] David Woodhouse
2001-11-16 23:33 ` Alex J Lennon
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='002e01c16ec9$1fdddc80$3e03010a@arcom.cc' \
--to=ajlennon@arcom.co.uk \
--cc=icampbell@arcom.co.uk \
--cc=linux-mtd@lists.infradead.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