readfile: implement readfile syscall
Quoted 9 lines · Al
Quoted 5 lines · Miklos Szeredi
1) just leave the first explanation (it's an open + read + close
equivalent) and leave out the rest2) add a loop around the
vfs_read()in the code.3) don't bother with the entire thing, until somebody manages to demonstrate a setup where it does make a real difference (compared to than the obvious sequence of syscalls, that is).
Ehh? System call overead is trivially measurable.
https://lwn.net/Articles/814175/
Quoted 2 lines
At which point we'll need to figure out
what's going on and deal with the underlying problem of that setup.
Run top?
Teach userspace to read 1 page minimum?
192803 read(4, "cpu 3718263 4417 342808 7127674"..., 1024) = 1024 192803 read(4, " 0 21217 21617 21954 10201 15425"..., 1024) = 1024 192803 read(4, " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 1024 192803 read(4, "", 1024)
Teach userspace to pread?
192803 openat(AT_FDCWD, "/proc/uptime", O_RDONLY) = 5 192803 lseek(5, 0, SEEK_SET) = 0 192803 read(5, "47198.56 713699.82\n", 8191) = 19
Rhetorical question: what is harder: ditch the main source of overhead (VFS, seq_file, text) or teach userspace how to read files?
Here is open+read /proc/cpuinfo in python2 and python3. Python2 case is terrifying.
BTW is there is something broken with seqfiles and record keeping? Why does it return only 2 records per read?
Python 3:
openat(AT_FDCWD, "/proc/cpuinfo", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0ioctl(3, TCGETS, 0x7ffe6f1f0850) = -1 ENOTTY (Inappropriate ioctl for device)lseek(3, 0, SEEK_CUR) = 0ioctl(3, TCGETS, 0x7ffe6f1f0710) = -1 ENOTTY (Inappropriate ioctl for device)lseek(3, 0, SEEK_CUR) = 0fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8192) = 3038 read(3, "processor\t: 2\nvendor_id\t: Genuin"..., 5154) = 3038 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 2116) = 2116 read(3, "clmulqdq dtes64 monitor ds_cpl v"..., 8448) = 3966 read(3, "processor\t: 8\nvendor_id\t: Genuin"..., 4482) = 3038 read(3, "processor\t: 10\nvendor_id\t: Genui"..., 1444) = 1444 read(3, "t\t: 64\naddress sizes\t: 46 bits p"..., 16896) = 3116 read(3, "processor\t: 13\nvendor_id\t: Genui"..., 13780) = 3044 read(3, "processor\t: 15\nvendor_id\t: Genui"..., 10736) = 1522read(3, "", 9214) = 0
Python 2
openat(AT_FDCWD, "/proc/cpuinfo", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 0lseek(3, 0, SEEK_CUR) = 0fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 1024lseek(3, 0, SEEK_CUR) = 1024read(3, " cqm_occup_llc cqm_mbm_total cqm"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 2048lseek(3, 0, SEEK_CUR) = 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 2048lseek(3, 0, SEEK_CUR) = 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 2048lseek(3, 0, SEEK_CUR) = 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 2048lseek(3, 0, SEEK_CUR) = 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 2048lseek(3, 0, SEEK_CUR) = 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 2048lseek(3, 0, SEEK_CUR) = 2048read(3, "ebs bts rep_good nopl xtopology "..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 3072lseek(3, 0, SEEK_CUR) = 3072fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 3072lseek(3, 0, SEEK_CUR) = 3072fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 3072lseek(3, 0, SEEK_CUR) = 3072fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 3072lseek(3, 0, SEEK_CUR) = 3072read(3, "ntel\ncpu family\t: 6\nmodel\t\t: 79\n"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 4096lseek(3, 0, SEEK_CUR) = 4096fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 4096lseek(3, 0, SEEK_CUR) = 4096read(3, "bm_local dtherm ida arat pln pts"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 5120lseek(3, 0, SEEK_CUR) = 5120fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 5120lseek(3, 0, SEEK_CUR) = 5120read(3, "nstop_tsc cpuid aperfmperf pni p"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 6144lseek(3, 0, SEEK_CUR) = 6144read(3, "del name\t: Intel(R) Xeon(R) CPU "..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 7168lseek(3, 0, SEEK_CUR) = 7168fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 7168lseek(3, 0, SEEK_CUR) = 7168read(3, "d_clear flush_l1d\nvmx flags\t: vn"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 8192lseek(3, 0, SEEK_CUR) = 8192read(3, "clmulqdq dtes64 monitor ds_cpl v"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 9216lseek(3, 0, SEEK_CUR) = 9216read(3, "E5-2620 v4 @ 2.10GHz\nstepping\t: "..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 10240lseek(3, 0, SEEK_CUR) = 10240read(3, "vnmi preemption_timer posted_int"..., 1024) = 1024 read(3, " vmx smx est tm2 ssse3 sdbg fma "..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 12288lseek(3, 0, SEEK_CUR) = 12288read(3, ": 1\nmicrocode\t: 0xb000038\ncpu MH"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 13312lseek(3, 0, SEEK_CUR) = 13312read(3, "r invvpid ept_x_only ept_ad ept_"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 14336lseek(3, 0, SEEK_CUR) = 14336read(3, "16 xtpr pdcm pcid dca sse4_1 sse"..., 1024) = 1024 read(3, "\t\t: 1326.352\ncache size\t: 20480 "..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 16384lseek(3, 0, SEEK_CUR) = 16384read(3, "gb flexpriority apicv tsc_offset"..., 1024) = 1024 read(3, "4_2 x2apic movbe popcnt tsc_dead"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 18432lseek(3, 0, SEEK_CUR) = 18432read(3, "KB\nphysical id\t: 0\nsiblings\t: 16"..., 1024) = 1024 read(3, " vtpr mtf vapic ept vpid unrestr"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 20480lseek(3, 0, SEEK_CUR) = 20480read(3, "adline_timer aes xsave avx f16c "..., 2048) = 2048 read(3, "estricted_guest vapic_reg vid pl"..., 1024) = 1024 fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0lseek(3, 0, SEEK_CUR) = 23552lseek(3, 0, SEEK_CUR) = 23552read(3, "16c rdrand lahf_lm abm 3dnowpref"..., 2048) = 770read(3, "", 1024) = 0
close(3) = 0
Quoted 34 lines · Alexey Dobriyan
Quoted 9 lines · Al
Quoted 5 lines · Miklos Szeredi
1) just leave the first explanation (it's an open + read + close
equivalent) and leave out the rest2) add a loop around the
vfs_read()in the code.3) don't bother with the entire thing, until somebody manages to demonstrate a setup where it does make a real difference (compared to than the obvious sequence of syscalls, that is).
Ehh? System call overead is trivially measurable.
https://lwn.net/Articles/814175/Quoted 2 lines
At which point we'll need to figure out
what's going on and deal with the underlying problem of that setup.Run top?
Teach userspace to read 1 page minimum?
192803 read(4, "cpu 3718263 4417 342808 7127674"..., 1024) = 1024 192803 read(4, " 0 21217 21617 21954 10201 15425"..., 1024) = 1024 192803 read(4, " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0"..., 1024) = 1024 192803 read(4, "", 1024)Teach userspace to pread?
192803 openat(AT_FDCWD, "/proc/uptime", O_RDONLY) = 5 192803 lseek(5, 0, SEEK_SET) = 0 192803 read(5, "47198.56 713699.82\n", 8191) = 19
Quoted 8 lines
Rhetorical question: what is harder: ditch the main source of overhead (VFS,
seq_file, text) or teach userspace how to read files?Here is open+read
/proc/cpuinfoin python2 and python3. Python2 case is terrifying.BTW is there is something broken with seqfiles and record keeping? Why does it return only 2 records per read?
seqfile is weird. It uses an internal buffer (m->buf) that starts off with a PAGE_SIZE size (m->size). The internal buffer is filled with whole records, if a single record is larger than the bufsize, then the buffer is expanded until the record fits. Then this internal buffer is used to fill the user buffer supplied by read. If the length of the internal buffer (m->count) overflows the user buffer, then the rest is set aside for the next read. In this case the next read starts with the tail (m->from) of the internal buffer, then, if there's still space in the user buffer, it resets the internal buffer (m->from = 0) and again fills it with at least one whole record and copies as much of that to the user buffer as it can.
Note how this can lead to unfilled bytes at the end of the user buffer. Not sure what's the rationelle, it could just as well loop back to filling a new buf it there's space left in the user buffer. Maybe it was: better return whole records whenever possible. Anyway that can't be changed now, since it's bound to break something out there.
Thanks,
Miklos
Quoted 214 lines
Python 3:
openat(AT_FDCWD, "/proc/cpuinfo", O_RDONLY|O_CLOEXEC)= 3fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0ioctl(3, TCGETS, 0x7ffe6f1f0850)= -1 ENOTTY (Inappropriate ioctl for device)lseek(3, 0, SEEK_CUR)= 0ioctl(3, TCGETS, 0x7ffe6f1f0710)= -1 ENOTTY (Inappropriate ioctl for device)lseek(3, 0, SEEK_CUR)= 0fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8192)= 3038read(3, "processor\t: 2\nvendor_id\t: Genuin"..., 5154)= 3038read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 2116)= 2116read(3, "clmulqdq dtes64 monitor ds_cpl v"..., 8448)= 3966read(3, "processor\t: 8\nvendor_id\t: Genuin"..., 4482)= 3038read(3, "processor\t: 10\nvendor_id\t: Genui"..., 1444)= 1444read(3, "t\t: 64\naddress sizes\t: 46 bits p"..., 16896)= 3116read(3, "processor\t: 13\nvendor_id\t: Genui"..., 13780)= 3044read(3, "processor\t: 15\nvendor_id\t: Genui"..., 10736)= 1522read(3, "", 9214)= 0Python 2
openat(AT_FDCWD, "/proc/cpuinfo", O_RDONLY)= 3fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 0lseek(3, 0, SEEK_CUR)= 0fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 1024lseek(3, 0, SEEK_CUR)= 1024read(3, " cqm_occup_llc cqm_mbm_total cqm"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 2048lseek(3, 0, SEEK_CUR)= 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 2048lseek(3, 0, SEEK_CUR)= 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 2048lseek(3, 0, SEEK_CUR)= 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 2048lseek(3, 0, SEEK_CUR)= 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 2048lseek(3, 0, SEEK_CUR)= 2048fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 2048lseek(3, 0, SEEK_CUR)= 2048read(3, "ebs bts rep_good nopl xtopology "..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 3072lseek(3, 0, SEEK_CUR)= 3072fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 3072lseek(3, 0, SEEK_CUR)= 3072fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 3072lseek(3, 0, SEEK_CUR)= 3072fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 3072lseek(3, 0, SEEK_CUR)= 3072read(3, "ntel\ncpu family\t: 6\nmodel\t\t: 79\n"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 4096lseek(3, 0, SEEK_CUR)= 4096fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 4096lseek(3, 0, SEEK_CUR)= 4096read(3, "bm_local dtherm ida arat pln pts"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 5120lseek(3, 0, SEEK_CUR)= 5120fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 5120lseek(3, 0, SEEK_CUR)= 5120read(3, "nstop_tsc cpuid aperfmperf pni p"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 6144lseek(3, 0, SEEK_CUR)= 6144read(3, "del name\t: Intel(R) Xeon(R) CPU "..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 7168lseek(3, 0, SEEK_CUR)= 7168fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 7168lseek(3, 0, SEEK_CUR)= 7168read(3, "d_clear flush_l1d\nvmx flags\t: vn"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 8192lseek(3, 0, SEEK_CUR)= 8192read(3, "clmulqdq dtes64 monitor ds_cpl v"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 9216lseek(3, 0, SEEK_CUR)= 9216read(3, "E5-2620 v4 @ 2.10GHz\nstepping\t: "..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 10240lseek(3, 0, SEEK_CUR)= 10240read(3, "vnmi preemption_timer posted_int"..., 1024)= 1024read(3, " vmx smx est tm2 ssse3 sdbg fma "..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 12288lseek(3, 0, SEEK_CUR)= 12288read(3, ": 1\nmicrocode\t: 0xb000038\ncpu MH"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 13312lseek(3, 0, SEEK_CUR)= 13312read(3, "r invvpid ept_x_only ept_ad ept_"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 14336lseek(3, 0, SEEK_CUR)= 14336read(3, "16 xtpr pdcm pcid dca sse4_1 sse"..., 1024)= 1024read(3, "\t\t: 1326.352\ncache size\t: 20480 "..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 16384lseek(3, 0, SEEK_CUR)= 16384read(3, "gb flexpriority apicv tsc_offset"..., 1024)= 1024read(3, "4_2 x2apic movbe popcnt tsc_dead"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 18432lseek(3, 0, SEEK_CUR)= 18432read(3, "KB\nphysical id\t: 0\nsiblings\t: 16"..., 1024)= 1024read(3, " vtpr mtf vapic ept vpid unrestr"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 20480lseek(3, 0, SEEK_CUR)= 20480read(3, "adline_timer aes xsave avx f16c "..., 2048)= 2048read(3, "estricted_guest vapic_reg vid pl"..., 1024)= 1024fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...})= 0lseek(3, 0, SEEK_CUR)= 23552lseek(3, 0, SEEK_CUR)= 23552read(3, "16c rdrand lahf_lm abm 3dnowpref"..., 2048)= 770read(3, "", 1024)= 0
close(3) = 0