Skip to content

Instantly share code, notes, and snippets.

View hyc's full-sized avatar

hyc

View GitHub Profile
@hyc
hyc / gist:4422efdca16512363ef201507cd624f4
Created September 28, 2017 01:53
dbbench quick test
violino:/home/software/dbbench/bin> foreach i (*)
foreach? rm -rf /tmp/dbbench-1000/*
foreach? ./$i
foreach? end
Basho LevelDB: version 1.9
Date: Thu Sep 28 02:45:11 2017
CPU: 4 * Intel(R) Core(TM)2 Extreme CPU Q9300 @ 2.53GHz
CPUCache: 6144 KB
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
@hyc
hyc / readwhilewriting.txt
Last active October 7, 2017 21:09
quick test with badger
[hyc@gamba dbbench]$ bin/t_lmdb
LMDB: version LMDB 0.9.70: (December 19, 2015)
Date: Sat Oct 7 19:18:38 2017
CPU: 4 * AMD A10-4600M APU with Radeon(tm) HD Graphics
CPUCache: 2048 KB
Keys: 16 bytes each
Values: 100 bytes each (50 bytes after compression)
Entries: 1000000
RawSize: 110.6 MB (estimated)
FileSize: 62.9 MB (estimated)
@hyc
hyc / dif.txt
Created May 30, 2019 20:47
Private testnet block versions
commit a4838d293e34ea9eb52a52183ba31ee62f54d036
Author: Howard Chu <hyc@symas.com>
Date: Thu May 30 10:06:44 2019 +0100
debug branch
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 108de6a0c..86c44c38f 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@hyc
hyc / benchmark.txt
Created October 22, 2019 01:52
RandomX benchmark on 32 core Ampere eMAG ARM server
root@randomx:~/RandomX/build# ./randomx-benchmark --auto --verify
RandomX benchmark v1.1.4
- Argon2 implementation: reference
- light memory mode (256 MiB)
- JIT compiled mode
- hardware AES mode
- small pages mode
Initializing ...
Memory initialized in 1.42558 s
Initializing 1 virtual machine(s) ...
@hyc
hyc / ITS#9112.txt
Created October 29, 2019 05:29
Stack trace and log snippet for identifying bug in ITS#9112
The backtrace for this clearly shows that the GSSAPI library is closing a socket that doesn't belong to it.
Thread 1 (Thread 0x7fc11edfe700 (LWP 54101)):
#0 0x00007fc65e1c7207 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007fc65e1c88f8 in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x00007fc65e1c0026 in __assert_fail_base () from /lib64/libc.so.6
No symbol table info available.
#3 0x00007fc65e1c00d2 in __assert_fail () from /lib64/libc.so.6
@hyc
hyc / idlekbd3.c
Last active May 20, 2023 22:53
Toggle keyboard backlight using OpenRGB on Lenovo Legion 7
/* Author: Howard Chu <hyc@symas.com> 2023-05-20
*
* monitor keyboard activity and toggle keyboard backlight
* for Lenovo Legion 7 gen6.
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>