* where is disk block access in kernel ?
@ 2016-03-02 9:57 Ran Shalit
2016-03-03 6:18 ` Mulyadi Santosa
2016-03-03 7:09 ` Valdis.Kletnieks at vt.edu
0 siblings, 2 replies; 3+ messages in thread
From: Ran Shalit @ 2016-03-02 9:57 UTC (permalink / raw)
To: kernelnewbies
Hello,
I would like to monitor the write access to disk blocks (so that I can
monitor the block index in some bitmap)
I think this must be done in kernel (userspace have no such information)
I have tried to search in kernel but did not found where is the API to
access disk blocks.
There is libata-core.c , but I can't find such routines there, and
neither any documentation.
Is there any idea ?
Regards,
Ran
^ permalink raw reply [flat|nested] 3+ messages in thread
* where is disk block access in kernel ?
2016-03-02 9:57 where is disk block access in kernel ? Ran Shalit
@ 2016-03-03 6:18 ` Mulyadi Santosa
2016-03-03 7:09 ` Valdis.Kletnieks at vt.edu
1 sibling, 0 replies; 3+ messages in thread
From: Mulyadi Santosa @ 2016-03-03 6:18 UTC (permalink / raw)
To: kernelnewbies
On Wed, Mar 2, 2016 at 4:57 PM, Ran Shalit <ranshalit@gmail.com> wrote:
> Hello,
>
> I would like to monitor the write access to disk blocks (so that I can
> monitor the block index in some bitmap)
> I think this must be done in kernel (userspace have no such information)
> I have tried to search in kernel but did not found where is the API to
> access disk blocks.
> There is libata-core.c , but I can't find such routines there, and
> neither any documentation.
>
> Is there any idea ?
>
> Regards,
> Ran
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
Hi
Sounds like something doable via ftrace.
try to check if it is feasible to be done using ftrace
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
This email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160303/490aed0f/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* where is disk block access in kernel ?
2016-03-02 9:57 where is disk block access in kernel ? Ran Shalit
2016-03-03 6:18 ` Mulyadi Santosa
@ 2016-03-03 7:09 ` Valdis.Kletnieks at vt.edu
1 sibling, 0 replies; 3+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-03-03 7:09 UTC (permalink / raw)
To: kernelnewbies
On Wed, 02 Mar 2016 11:57:41 +0200, Ran Shalit said:
> I would like to monitor the write access to disk blocks (so that I can
> monitor the block index in some bitmap)
What exactly are you trying to do with that information? (Hint - figure out
how big a bitmap you need for the blocks on a 2T or 4T drive - or for the
600T to petabyte filesystems I deal with for a living).
Do you need just write access, or read as well?
Do you need the info before or after the disk cache is involved?
Do you need to deal with corner cases like a program writing to a file, and
then unlinking the file before the blocks are written to disk?
As is common for kernel issues, the answer depends a lot on exactly what
the *real* question is....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160303/67a25edc/attachment.bin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-03 7:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-02 9:57 where is disk block access in kernel ? Ran Shalit
2016-03-03 6:18 ` Mulyadi Santosa
2016-03-03 7:09 ` Valdis.Kletnieks at vt.edu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).