flat assembler
Message board for the users of flat assembler.
Index
> Linux > glibc vs calling the kernel |
Author |
|
amcl 19 Jun 2006, 22:46
Hi Chewy. Which syscall's are you measuring? Perhaps you are just witnessing the buffering that the C library does to minimize syscall overhead? Another possibility is the cache state. If the cache is primed in one of your tests it would run faster.
|
|||
19 Jun 2006, 22:46 |
|
Chewy509 20 Jun 2006, 02:50
As you mentioned, it appears that glibc does some of it's own buffering to minimise syscalls. Measuring the number of syscalls (not the duration) shows that glibc must be doing a huge amount of buffering on read/write requests of its own, rather than letting the kernel do the buffering.
PS. I only use: open, close, remove, sys_brk, read, write and lseek. (99% of the calls would be read/write). |
|||
20 Jun 2006, 02:50 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.