闫明 RustConfChina TiDB Serverless.pptxversion https://git-lfs.github.com/spec/v1 oid sha256:477ea3b9cb5ff505ef7d8528eb63d892d8728994f7a9436c6f2ef6f657ce9fdb size 180612370 码力 | 1 页 | 133.00 B | 6 月前3
绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能to optimize 02 Comparison with industry Performance measurement 03 04 Future work 05 06 Lessons from eBPF What is K8s Service • It exposes a set of pods via VIP using a load balancer • Two types at PREROUTING chain • SNAT at POSTROUTING chain • Pros • Iptables is widely adopted in popular Linux distributions • Cons • O(N^2) in control plane / O(N) in data plane • Poor in scheduling algorithm • Iptables/conntrack SNAT • How IPVS bypasses conntrack? • Ingress • Move IPVS Netfilter hook from local-in to PREROUTING • The challenges • Skb’s pointer to route is NULL during PREROUTING • No de-fragment0 码力 | 24 页 | 1.90 MB | 1 年前3
whats new in visual studioeditor [StackOverflow Developer Surveys] Free, open-source code editor Runs on Windows, macOS, and Linux C++ IntelliSense, debug & code browsing CMake, vcpkg and git integrations SSH/container/WSL remote code (with the same compiler as today) 💡 MSVC 2015, 2017 and 2019 toolsets are available directly from Visual Studio 2022 Step #3: Compile your code with the latest compiler 💡 Binary compatibility between linked for command-line builds Visual Studio integration • MSBuild & CMake support for Windows & Linux • Debugger integration for MSVC and Clang/LLVM Visit https://aka.ms/asan to learn more Announcing0 码力 | 42 页 | 19.02 MB | 6 月前3
THE FIRST EXPLORATION OF PROJECT SPARROWAn indie developer from China The main translator of the book «Gray Hat Hacking The Ethical Hacker's Handbook, Fourth Edition» (ISBN : 9787302428671) & «Linux Hardening in Hostile new-golden-age-for-computer-architecture/fulltext Source: https://www.zdnet.com/article/risc-v-the-linux-of-the-chip-world-is-starting-to- produce-technological-breakthroughs/ I. Background 2) Rust support in seL4 userspace Overview II. Practicing Sparrow A good summary from "Rust support in seL4 userspace : Present and future", Nick Spinale, seL4 Summit 2022:0 码力 | 68 页 | 13.14 MB | 1 年前3
谈谈MYSQL那点事.MYI .MYD .frm • 少碎片、支持大文件、能够进行索引压缩 少碎片、支持大文件、能够进行索引压缩 • 二进制层次的文件可以移植 二进制层次的文件可以移植 (Linux (Linux Windows) Windows) • 访问速度飞快,是所有 访问速度飞快,是所有 MySQL MySQL 文件引擎中速度最快的 文件引擎中速度最快的 • 不支持一些数据库特性,比如 INDEX INDEX FROM xxx FROM xxx 来查看表索引 来查看表索引 使用 使用 LOAD DATA LOAD DATA 导入数据比 导入数据比 INSERT INTO INSERT INTO 快多了 快多了 SELECT COUNT(*) FROM Tbl SELECT COUNT(*) FROM Tbl 在 在 InnoDB0 码力 | 38 页 | 2.04 MB | 1 年前3
Making Libraries Consumable for Non-C++ DevelopersWhat isn’t being declared? struct data_t { int a; int b; }; /* Get data from device ‘dev’. */ data_t get_data_from(size_t dev); What defines how dev is passed or data_t is returned? Calling conventions… here? push ... call data_t get_data_from(unsigned int) add esp, 4 add eax, edx Caller cleanup (cdecl) push ... call data_t get_data_from(unsigned int) add eax, edx Callee cleanup (stdcall) data_t d = get_data_from(dev); return d.a + d.b;What isn’t being declared? struct data_t { int a; int b; }; /* Get data from device ‘dev’. */ data_t get_data_from(size_t dev); class dev_t0 码力 | 29 页 | 1.21 MB | 6 月前3
NativeScript 101everywhere o Share 100% code between iOS/Android o Share 80% code with web o Reuse popular plugins from NodeJS/iOS/Android o Integrates deeply with Angular and TypeScript The {N} difference… Demo NativeScript CLI Command Line Interface (CLI) o Use Command Prompt (Win) or Terminal (Mac, Linux) o Free, Part of open source project o Requires installation, local environment setup to build Apache Ant, Android SDK $ npm install –g nativescript NativeScript Sidekick o Tool for Mac/Windows/Linux o Cloud Builds o LiveSync, Debugging, Starter Kits o Plugins Management o Visual Studio Integration0 码力 | 90 页 | 40.11 MB | 1 年前3
应用 waPC (rust) 做软件测试工具FFI Input type Return type Platform 底层 I32 I32 Unknown waPC &[u8] Result,error > Linux x86_64, macOS x86_64 ,Wi ndows x86_64, … cargo build —target wasm- unknown-unknown waPC Host Some(cap) = re.captures(&req.HttpPath){ } req.HttpProxyUrl = String::from(“localhost:8000"); req.HttpScheme = String::from("http"); let request = serde_json::to_string(&req)?; Ok(request.as_bytes() foo_unmarshall:: (msg)?; res.HttpBody = json!({"data":“hi"}); res.StatusCode = String::from("200") let res= serde_json::to_string(&res)?; Ok(res.as_bytes().to_vec()) } waPC in rust in HTTP(MITM) 0 码力 | 30 页 | 2.50 MB | 1 年前3
C++20's track of leap seconds. Internally, uses clock_time_conversions which each use to_utc, from_utc, to_sys, and from_sys as needed.25 Part IV: Leap Seconds26 What is a leap second? Definition: a one-second post-2018 leap seconds from a Windows registry • SYSTEM\CurrentControlSet\Control\LeapSecondInformation • For pre-2018 leap seconds, we maintain a static constexpr table to pull data from. • Note that we Daylight Saving Time’s fault)40 sys_time and local_time conversions It’s possible for a conversion from a local_time to a sys_time to throw two different exceptions: • ambiguous_local_time • Consider0 码力 | 55 页 | 8.67 MB | 6 月前3
Analyzing MySQL Logs with ClickHouseLogs ? Raw Logs Contain ultimate level of detail You build any summaries from Raw Events You can’t recover Raw Events from Summaries Audit Trace Application/User Path © 2018 Percona. 6 Why Not :53:42 UTC","command_class":"select","connection_id":"2394","status" :0,"sqltext":"SELECT SUM(k) FROM sbtest1 WHERE id BETWEEN 3 AND 102","user":"sbtest[sbtest] @ localhost []","host":"localhost","os_user":"" When Did we have failures © 2018 Percona. 34 Long Transactions © 2018 Percona. 35 Queries from bad Transaction © 2018 Percona. 36 Anyone dumping a lot of data ? © 2018 Percona. 37 Want Processed0 码力 | 43 页 | 2.70 MB | 1 年前3
共 56 条
- 1
- 2
- 3
- 4
- 5
- 6













