[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash reads on device when it shouldn't...

From: Kārlis Repsons
Subject: Re: bash reads on device when it shouldn't...
Date: Fri, 23 Oct 2009 18:37:05 +0000
User-agent: KMail/1.9.9

Thanks for looking!

On Friday 23 October 2009 16:11:06 Marc Herbert wrote:
> In case you are using Linux you can pinpoint which files are accessed
> like this:
> echo 1 > /proc/sys/vm/block_dump
> dmesg -c

If you was more careful, you'd know I already did that. And there was NO 
SPECIFIC FILE mentioned in blockdump. "something" was read at some block and 
that was all the info. In other times when some particular file was red, it 
was right in blockdump... So I have no idea.

On Friday 23 October 2009 15:00:07 Greg Wooledge wrote:
> "When I log in" is probably bash reading your dot files (/etc/profile,
> ~/.bash_profile, ~/.bashrc) and whatever the commands in those files tell
> it to do.
But please, those all are not on disks, which are unnecessarily turned on!

> "Time after time as bash is running" is probably the mail check, unless
> you've told bash to store history in some nonstandard way.  (This would
> also be likely to occur at login.)
> "man bash" will tell you how to disable the mail check, if you'd like to
> try that.
I will try this a bit later... Anyway, no program data should be written or 
read on those disks by that.

> If you'd like to find out what's actually happening, you might 
> need to use something like truss/strace/etc. with timestamps, and then
> refer back to the trace when you observe the disk behavior, and see what
> bash was doing at that time.
Does that requires specific kernel options or bash in some debug compilation?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]