VM tuning through fault trace gathering [with actual code]
Subsystems (4)
Last year I had the idea of tracing the memory accesses of the system to improve the VM - the traces could be used to test algorithms in userspace. The difficulty is of course making all memory accesses fault without destroying system performance.
The following patch (i386 only) will dump all page faults to /dev/biglog (you need devfs for this node to appear). If you echo 1 > /proc/sys/vm/trace then *almost all* userspace memory accesses will take a soft fault. Note that this is a bit suicidal at the moment because of the staggeringly inefficient way its implemented, on my box (K6-2 300MHz) only processes which do very little (e.g. /usr/bin/yes) running at highest priority are able to print anything to the console.
I think the best way would be to have only one valid l2 pte per process. I'll have a go at doing that in a day or two unless someone has a better idea?
drivers/char/Makefile +1 -1
@@ -16,7 +16,7 @@ O_TARGET := char.o -obj-y += tty_io.o n_tty.o tty_ioctl.o mem.o raw.o pty.o misc.o random.o +obj-y += tty_io.o n_tty.o tty_ioctl.o mem.o raw.o pty.o misc.o random.o biglog.o # All of the (potential) objects that export symbols. # This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
drivers/char/biglog.c +204 -0
204 lines not on this page · raw message
include/asm-i386/mmu_context.h +2 -0
@@ -27,6 +27,8 @@static inline void switch_mm (struct mm_struct *prev,struct mm_struct *next,struct task_struct *tsk,unsigned cpu) { +extern void trace_mm (struct mm_struct *mm); +trace_mm (next);if (prev != next) {/* stop flush ipis for the previous mm */ clear_bit (cpu, &prev->cpu_vm_mask);
include/asm-i386/pgtable.h +5 -1
@@ -174,6 +174,7 @@#define _PAGE_GLOBAL 0x100/* Global TLB entry PPro+ */ #define _PAGE_PROTNONE 0x080/* If not present */ +#define _PAGE_TRACE 0x200#define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY)#define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
@@ -243,7 +244,8 @@/* page table for 0-4MB for everybody */ extern unsigned long pg0[1024 ]; -#define pte_present (x) ((x).pte_low & (_PAGE_PRESENT | _PAGE_PROTNONE)) +#define pte_present (x) ((x).pte_low & (_PAGE_PRESENT | _PAGE_PROTNONE | _PAGE_TRACE)) +#define pte_traced (x) ((x).pte_low & _PAGE_TRACE)#define pte_clear (xp) do { set_pte(xp, __pte(0)); } while (0)#define pmd_none (x) (!pmd_val(x))
@@ -278,6 +280,8 @@static inline pte_t pte_mkdirty (pte_t pte) { (pte).pte_low |= _PAGE_DIRTY;return pte; }static inline pte_t pte_mkyoung (pte_t pte) { (pte).pte_low |= _PAGE_ACCESSED;return pte; }static inline pte_t pte_mkwrite (pte_t pte) { (pte).pte_low |= _PAGE_RW;return pte; } +static inline pte_t pte_mktrace (pte_t pte) { (pte).pte_low |= _PAGE_TRACE; (pte).pte_low &= ~_PAGE_PRESENT;return pte; } +static inline pte_t pte_untrace (pte_t pte) {if (!pte_traced (pte))return pte; (pte).pte_low &= ~_PAGE_TRACE; (pte).pte_low |= _PAGE_PRESENT;return pte; }static inline int ptep_test_and_clear_dirty (pte_t *ptep) {return test_and_clear_bit (_PAGE_BIT_DIRTY, ptep); }static inline int ptep_test_and_clear_young (pte_t *ptep) {return test_and_clear_bit (_PAGE_BIT_ACCESSED, ptep); }
include/linux/sysctl.h +2 -1
@@ -134,7 +134,8 @@VM_PAGECACHE =7 ,/* struct: Set cache memory thresholds */ VM_PAGERDAEMON =8 ,/* struct: Control kswapd behaviour */ VM_PGT_CACHE =9 ,/* struct: Set page table cache parameters */ - VM_PAGE_CLUSTER=10 /* int: set number of pages to swap together */ +VM_PAGE_CLUSTER =10 ,/* int: set number of pages to swap together */ + VM_TRACE=11, /* Turn on page access tracing */ };
kernel/sysctl.c +3 -0
@@ -40,6 +40,7 @@#if defined(CONFIG_SYSCTL )/* External variables not in a header file. */ +extern int page_trace;extern int panic_timeout;extern int C_A_D ;extern int bdf_prm[], bdflush_min[], bdflush_max[];
@@ -270,6 +271,8 @@ &pgt_cache_water, 2*sizeof(int), 0644, NULL, &proc_dointvec}, {VM_PAGE_CLUSTER ,"page-cluster" , &page_cluster, sizeof(int), 0644, NULL, &proc_dointvec}, + {VM_TRACE, "trace", + &page_trace, sizeof(int), 0644, NULL, &proc_dointvec}, {0} };
mm/memory.c +59 -6
100 lines not on this page · raw message
Signature · 3 lines
-- PS. I'm desparately seeking last minute summer job in Europe due to an unfortunate series of events. Please see http://ape.n3.net/cv.html
Quoted 4 lines · John Fremlin
Last year I had the idea of tracing the memory accesses of the system to improve the VM - the traces could be used to test algorithms in userspace. The difficulty is of course making all memory accesses fault without destroying system performance.
Sounds like a cool idea. One thing you should keep in mind though is to gather traces of the WHOLE SYSTEM and not of individual applications.
There has to be a way to balance the eviction of pages from applications against those of other applications.
regards,
Rik
--
Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose...
http://www.surriel.com/ http://distro.conectiva.com/
Send all your spam to [email protected] (spam digging piggy)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
Quoted 10 lines · Rik van Riel
Quoted 4 lines · John Fremlin
Last year I had the idea of tracing the memory accesses of the system to improve the VM - the traces could be used to test algorithms in userspace. The difficulty is of course making all memory accesses fault without destroying system performance.
Sounds like a cool idea. One thing you should keep in mind though is to gather traces of the WHOLE SYSTEM and not of individual applications.
In the current patch all pagefaults are recorded from all sources. I'd like to be able to catch read(2) and write(2) (buffer cache stuff) as well but I don't know how . . . .
Quoted 2 lines
There has to be a way to balance the eviction of pages from applications against those of other applications.
Of course! It is important not to regard each thread group as an independent entity IMHO (had a big old argument about this).
[...]
Signature · 5 lines
http://ape.n3.net -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/
EXT2 Filesystem permissions (bug)?
Is this a bug or something thats undocumented somewhere?
d--------T
and
drwSrwSrwT
are these special bits? I'm not aware of +S and +T
Shawn.
Re: EXT2 Filesystem permissions (bug)?
Quoted 7 lines · Shawn Star
Is this a bug or something thats undocumented somewhere?
d--------T
and
drwSrwSrwTare these special bits? I'm not aware of +S and +T
---S------ = setuid (normally shows up as "s" if "x" is also set) ------S--- = setgid (normally shows up as "s" if "x" is also set) ---------T = sticky bit (prevents non-owner from deleting a file in
world-writable directory like /tmp)
See chmod(1) for this info.
Cheers, Andreas
Signature · 3 lines
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- DogbertRe: EXT2 Filesystem permissions (bug)?
In reply to Shawn StarrThose are normal unix permissions, and you can use them on every kind of Unix FS, (at less i saw them on jfs, hfs, vxfs, xfs, reiserfs, ext2, ufs).
S is suid and sgid without execution bit.
T is stiky bit without any execution bit.
(I hope my english is correct)
Luigi
Quoted 18 lines · Shawn Starr
Is this a bug or something thats undocumented somewhere?
d--------T
and
drwSrwSrwTare these special bits? I'm not aware of +S and +T
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: EXT2 Filesystem permissions (bug)?
In reply to John FremlinFollowup to: <[email protected]> By author: Shawn Starr <[email protected]> In newsgroup: linux.dev.kernel
Quoted 9 lines
Is this a bug or something thats undocumented somewhere?
d--------T
and
drwSrwSrwTare these special bits? I'm not aware of +S and +T
It's neither a bug nor undocumented.
"info ls" would have told you the following:
The permissions listed are similar to symbolic mode specifications
(*note Symbolic Modes::.). But `ls' combines multiple bits into the third character of each set of permissions as follows:
`s'
If the setuid or setgid bit and the corresponding executable bit are both set.
`S'
If the setuid or setgid bit is set but the corresponding executable bit is not set.
`t'
If the sticky bit and the other-executable bit are both set.
`T'
If the sticky bit is set but the other-executable bit is not set.
`x'
If the executable bit is set and none of the above apply.
`-'
Otherwise.
-hpa
Signature · 3 lines
<[email protected]> at work, <[email protected]> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt
Re: EXT2 Filesystem permissions (bug)?
oh ;)
I never noticed that info before, then again 2 hours of sleep might be the cause :)
Quoted 54 lines · H. Peter Anvin
Followup to: <[email protected]> By author: Shawn Starr <[email protected]> In newsgroup: linux.dev.kernelQuoted 9 lines
Is this a bug or something thats undocumented somewhere?
d--------T
and
drwSrwSrwTare these special bits? I'm not aware of +S and +T
It's neither a bug nor undocumented.
"info ls" would have told you the following:
The permissions listed are similar to symbolic mode specifications
(*note Symbolic Modes::.). But `ls' combines multiple bits into the third character of each set of permissions as follows:
`s'
If the setuid or setgid bit and the corresponding executable bit are both set.`S'
If the setuid or setgid bit is set but the corresponding executable bit is not set.`t'
If the sticky bit and the other-executable bit are both set.`T'
If the sticky bit is set but the other-executable bit is not set.`x'
If the executable bit is set and none of the above apply.`-'
Otherwise.-hpa
--
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 4 lines · John Fremlin
Quoted 3 lines · Rik van Riel
Sounds like a cool idea. One thing you should keep in mind though is to gather traces of the WHOLE SYSTEM and not of individual applications.
Not to look a gift horse in the mouth, but the ability to trace selectively either the whole system OR an individual application would be useful. Certainly whole system traces would be new, as individual process traces can be gathered with other tools (although I don't know of one available on Linux
- -- I'm stuck using ATOM under Alpha/Tru64.)
Quoted 3 lines
In the current patch all pagefaults are recorded from all sources. I'd like to be able to catch read(2) and write(2) (buffer cache stuff) as well but I don't know how . . . .
Also a great idea. Someone who works on the filesystem end of the kernel should be able to add support for this kind of thing without much trouble, don't you think?
Quoted 2 lines
Of course! It is important not to regard each thread group as an independent entity IMHO (had a big old argument about this).
Yes, I was the other side of that argument! :-) I'll still contend that, tracking references for each process is better than tracking it only for the whole system, and tracking references for each thread might be better still. When you track references from the whole-system view alone, pathological reference behavior of one process gets mixed in with other processes, making it impossible to identify that the one process should have its memory managed in a manner different from the others. Grouping together behaviors just smooths their features. Separating them offers an opportunity to identify anomolies, and anomolies are opportunities for better memory management.
Scott
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7OJX18eFdWQtoOmgRAmniAKCTFGVJmgMOXJWiHfA+UxVUiT37zQCfZywy bRYZKRymeXfjhh6wX2SZb6I=
=5TTZ
-----END PGP SIGNATURE-----
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
Hi people!
I just sent an updated version of the patch to Scott, which faults on almost every mem access. Unfortunately that slows the system to a crawl (doh), in fact so much of a crawl that nothing much happens. Anybody have a turbofast P4/Athlon they want to lend or send me ;-)
Scott F. Kaplan <[email protected]> writes:
[...]
Quoted 6 lines
Not to look a gift horse in the mouth, but the ability to trace selectively either the whole system OR an individual application would be useful. Certainly whole system traces would be new, as individual process traces can be gathered with other tools (although I don't know of one available on Linux -- I'm stuck using ATOM under Alpha/Tru64.)
That looks like a very cool package (AFAICS it instruments the binary to call a subroutine before every memory access).
The pagetrace patch has a slightly different goal however. The alpha people seemed to want to tune their cache behaviour whereas I want to tune the VM behaviour.
Quoted 7 lines
Quoted 3 lines
In the current patch all pagefaults are recorded from all sources. I'd like to be able to catch read(2) and write(2) (buffer cache stuff) as well but I don't know how . . . .
Also a great idea. Someone who works on the filesystem end of the kernel should be able to add support for this kind of thing without much trouble, don't you think?
I'd really like a clue or too in this direction certainly because its difficult to simulate the VM if you don't know how big e.g. the directory dcache is.
Quoted 4 lines
Quoted 2 lines
Of course! It is important not to regard each thread group as an independent entity IMHO (had a big old argument about this).
Yes, I was the other side of that argument! :-) I'll still contend that,
Hehe. Let's not go into that right now ;-)
[...]
--
http://ape.n3.net
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
Re: EXT2 Filesystem permissions (bug)?
In reply to John FremlinInteresting but I wonder how much this helps someone that not already know what it is. Should not the ls manual also contain something that explains the meaning instead of just the mapping from bits to symbol.
Do linux even support the sticky bit (t) I can't see a reason to use it, why would I want the file to be stored in the swap ??
Also I think S (setuid but no execute bit) have something to do with file locking but I'am not shure exactly how it works.
Quoted 44 lines · H. Peter Anvin
Followup to: <[email protected]> By author: Shawn Starr <[email protected]> In newsgroup: linux.dev.kernelQuoted 9 lines
Is this a bug or something thats undocumented somewhere?
d--------T
and
drwSrwSrwTare these special bits? I'm not aware of +S and +T
It's neither a bug nor undocumented.
"info ls" would have told you the following:
The permissions listed are similar to symbolic mode specifications
(*note Symbolic Modes::.). But `ls' combines multiple bits into the third character of each set of permissions as follows:
`s'
If the setuid or setgid bit and the corresponding executable bit are both set.`S'
If the setuid or setgid bit is set but the corresponding executable bit is not set.`t'
If the sticky bit and the other-executable bit are both set.`T'
If the sticky bit is set but the other-executable bit is not set.`x'
If the executable bit is set and none of the above apply.`-'
Otherwise.-hpa
Re: EXT2 Filesystem permissions (bug)?
Quoted 2 lines
Do linux even support the sticky bit (t) I can't see a reason to use it, why would I want the file to be stored in the swap ??
For files I think it was used in days when there was no VM, so that you could hint the system to put frequently used executables always in memory (like vi, sh, etc). After VM was invented, there is really no reason to use it. I don't think newer OSes like Linux implemented this.
Quoted 1 line
Also I think S (setuid but no execute bit) have something to do with file locking but I'am not shure exactly how it works.
On some unix systems S means using mandatory locking (instead of advisory locking). I am not sure about Linux though.
Quoted 51 lines
Quoted 37 lines · H. Peter Anvin
Followup to: <[email protected]> By author: Shawn Starr <[email protected]> In newsgroup: linux.dev.kernelQuoted 9 lines
Is this a bug or something thats undocumented somewhere?
d--------T
and
drwSrwSrwTare these special bits? I'm not aware of +S and +T
It's neither a bug nor undocumented.
"info ls" would have told you the following:
The permissions listed are similar to symbolic mode specifications
(*note Symbolic Modes::.). But `ls' combines multiple bits into the third character of each set of permissions as follows:
`s'
If the setuid or setgid bit and the corresponding executable bit are both set.`S'
If the setuid or setgid bit is set but the corresponding executable bit is not set.`t'
If the sticky bit and the other-executable bit are both set.`T'
If the sticky bit is set but the other-executable bit is not set.Quoted 7 lines
`x'
If the executable bit is set and none of the above apply.`-'
Otherwise.-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: EXT2 Filesystem permissions (bug)?
In reply to Kenneth JohanssonQuoted 2 lines · Kenneth Johansson
Do linux even support the sticky bit (t) I can't see a reason to use it, why would I want the file to be stored in the swap ??
It is not currently supported. Swapping out executables would be very nice when using an NFS or CD-ROM filesystem, because swap space is much faster.
Quoted 2 lines
Also I think S (setuid but no execute bit) have something to do with file locking but I'am not shure exactly how it works.
Yeah, if you mount with mandatory locking enabled it does stuff. It's a UNIX feature.
Re: EXT2 Filesystem permissions (bug)?
In reply to Kenneth JohanssonQuoted 4 lines · Kenneth Johansson
Interesting but I wonder how much this helps someone that not already know what it is. Should not the ls manual also contain something that explains the meaning instead of just the mapping from bits to symbol.
Do linux even support the sticky bit (t) I can't see a reason to use it, why would I want the file to be stored in the swap ??
??????
if i have a sticky bit on a directory where every user has permission to write, and i write a file, that i will be the only one able to modify/delete my file.
If there is no sticky bit on the directory, then every one is able to manipulate my file.
How is this related to swap?
usually the sticky bit is used for /tmp /var/tmp, where it has to be used for security reasons.
Maybe you are making confusion because some other Unix use the /tmp partition with a special FS to use it also as a swap area (Slowlaris for expample, the old, old, old HP-UX pre 7.X versions and so on), and of course /tmp has the sticky be setted.
If i am wrong with my supposition, excuse me.
Luigi
Re: EXT2 Filesystem permissions (bug)?
In reply to John Fremlin"H. Peter Anvin" wrote:
:: It's neither a bug nor undocumented.
Kenneth Johansson wrote:
: Interesting but I wonder how much this helps someone that not already know : what it is. Should not the ls manual also contain something that explains
In fact the best info is on the stat page:
...
The set GID bit (S_ISGID) has several special uses: For a directory it indicates that BSD semantics is to be used for that directory: files created there inherit their group ID from the directory, not from the effective gid of the creating process, and directories created there will also get the S_ISGID bit set. For a file that does not have the group execution bit (S_IXGRP) set, it indicates mandatory file/record locking.
The `sticky' bit (S_ISVTX) on a directory means that a file in that directory can be renamed or deleted only by the owner of the file, by the owner of the directory, and by root.
...
Quoted 14 lines · John Fremlin
Last year I had the idea of tracing the memory accesses of the system to improve the VM - the traces could be used to test algorithms in userspace. The difficulty is of course making all memory accesses fault without destroying system performance.
The following patch (i386 only) will dump all page faults to
/dev/biglog(you need devfs for this node to appear). If you echo 1 >/proc/sys/vm/tracethen *almost all* userspace memory accesses will take a soft fault. Note that this is a bit suicidal at the moment because of the staggeringly inefficient way its implemented, on my box (K6-2 300MHz) only processes which do very little (e.g./usr/bin/yes) running at highest priority are able to print anything to the console.
Quoted 3 lines
I think the best way would be to have only one valid l2 pte per process. I'll have a go at doing that in a day or two unless someone has a better idea?
Linux Trace Toolkit (http://www.opersys.com/LTT) does that.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
Quoted 7 lines · Marcelo Tosatti
Quoted 5 lines · John Fremlin
Last year I had the idea of tracing the memory accesses of the system to improve the VM - the traces could be used to test algorithms in userspace. The difficulty is of course making all memory accesses fault without destroying system performance.
[...]
Quoted 1 line
Linux Trace Toolkit (http://www.opersys.com/LTT) does that.
I dld the ltt-usenix paper and skim read it. It didn't seem to talk about page faults much. Where should I look?
Signature · 5 lines
http://ape.n3.net -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/
Quoted 10 lines · John Fremlin
Quoted 7 lines · Marcelo Tosatti
Quoted 5 lines · John Fremlin
Last year I had the idea of tracing the memory accesses of the system to improve the VM - the traces could be used to test algorithms in userspace. The difficulty is of course making all memory accesses fault without destroying system performance.
Quoted 6 lines
[...]
Quoted 1 line
Linux Trace Toolkit (http://www.opersys.com/LTT) does that.
I dld the ltt-usenix paper and skim read it. It didn't seem to talk about page faults much. Where should I look?
Grab the source and try it out?
Example page fault trace:
####################################################################
Event Time PID Length Description
####################################################################
Trap entry 991,299,585,597,016 678 12 TRAP: page fault; EIP : 0x40067785
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
Quoted 5 lines · Marcelo Tosatti
####################################################################
Event Time PID Length Description
####################################################################Trap entry 991,299,585,597,016 678 12 TRAP: page fault; EIP :
0x40067785
That looks like just the generic interrupt handling. It does not do what I want to do, i.e. record some more info about the fault saying where it comes from.
Signature · 5 lines
http://ape.n3.net -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/
Quoted 11 lines · John Fremlin
Quoted 5 lines · Marcelo Tosatti
####################################################################
Event Time PID Length Description
####################################################################Trap entry 991,299,585,597,016 678 12 TRAP: page fault; EIP :
0x40067785That looks like just the generic interrupt handling. It does not do what I want to do, i.e. record some more info about the fault saying where it comes from.
You can create custom events with LTT and then you can get them from a "big buffer" to userlevel later, then.
I just told you about LTT because I think you are redoing work by creating the tracing facilities...
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 9 lines · Marcelo Tosatti
Quoted 8 lines · John Fremlin
Quoted 6 lines · Marcelo Tosatti
####################################################################
Event Time PID Length Description
####################################################################Trap entry 991,299,585,597,016 678 12 TRAP:
page fault; EIP :0x40067785
Quoted 6 lines
Quoted 3 lines
That looks like just the generic interrupt handling. It does not do what I want to do, i.e. record some more info about the fault saying where it comes from.
You can create custom events with LTT and then you can get them from a "big buffer" to userlevel later, then.
I guess that i have a different concern with this existing utility. It seems that it will report page faults (minor or major) for the normal VM system configuration. What if we want it to record all (or nearly) all page references, even ones to pages that *normally* wouldn't cause any kind of interrupt? That ability seems new and unique to John's utility.
(I know, I need to read the LLT manual, as it may be able to do exactly what I'm describing. However, I don't think that's the case.)
Scott
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7OdX28eFdWQtoOmgRAlhHAKCFHjgw62OlQmytkRiY+Zl9xaMz7gCfXSmm mNsg0QUAwAhJnhwrL088IwI=
=CC+e
-----END PGP SIGNATURE-----
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
Quoted 20 lines · Scott F.Kaplan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 9 lines · Marcelo Tosatti
Quoted 8 lines · John Fremlin
Quoted 6 lines · Marcelo Tosatti
####################################################################
Event Time PID Length Description
####################################################################Trap entry 991,299,585,597,016 678 12 TRAP:
page fault; EIP :0x40067785Quoted 6 lines
Quoted 3 lines
That looks like just the generic interrupt handling. It does not do what I want to do, i.e. record some more info about the fault saying where it comes from.
You can create custom events with LTT and then you can get them from a "big buffer" to userlevel later, then.
Quoted 8 lines
I guess that i have a different concern with this existing utility. It seems that it will report page faults (minor or major) for the normal VM system configuration. What if we want it to record all (or nearly) all page references, even ones to pages that *normally* wouldn't cause any kind of interrupt? That ability seems new and unique to John's utility.
(I know, I need to read the LLT manual, as it may be able to do exactly what I'm describing. However, I don't think that's the case.)
You are right here.
But anyway, I think John can do what he wants without writting a whole new tracing facility.
IMHO.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/
[...]
Quoted 8 lines
Quoted 3 lines
(I know, I need to read the LLT manual, as it may be able to do exactly what I'm describing. However, I don't think that's the case.)
You are right here.
But anyway, I think John can do what he wants without writting a whole new tracing facility.
That is unfortunate because the tracing facility is already written. Oh well. I guess I should have asked again before restarting work on it a day or so ago. At least it didn't take very long so not too many man-hours wasted ;-)
Signature · 5 lines
http://ape.n3.net -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/