profile
viewpoint
Seo Sanghyeon sanxiyn @lablup Seoul, South Korea Rust contributor

brson/basic-http-server 358

A simple static HTTP server in Rust, for learning and local doc development

fasterthanlime/jooc-legacy 115

:crocodile: The historical, initial implementation of an ooc compiler in Java

lisp-korea/sicp 43

sicp solution of lisp korea group

lifthrasiir/hexf 35

Hexadecimal float support for Rust 1.15 or later

klutzy/android-design-ko 30

[비활성 상태입니다] 안드로이드 디자인 문서를 한국어로 번역합니다.

sanxiyn/blog 11

Personal blog

sanxiyn/leveldb-c 9

LevelDB C binding

lablup/rraft-py 7

Unofficial Python Binding of the tikv/raft-rs

sanxiyn/kaleidoscope 6

LLVM Kaleidoscope tutorial ported to Python

sanxiyn/hcc 4

Historical Country Codes

startedtypst/typst

started time in 4 days

startedapache/incubator-opendal

started time in 4 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 6bc8c88543c1e65cb65f4c87dd03ccb8bc374f09

Rust port

view details

push time in 23 days

create barnchsanxiyn/sandbox

branch : main

created branch time in 23 days

delete branch sanxiyn/sandbox

delete branch : master

delete time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha f47821be5e8dd956ccca5d3267004e528512f5b1

Rust port

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 502c591d90d7037e81a1f929b3852cdba4230956

Quote multiple words query

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 72fca83d0cbdde3a7c2ce2100ad379f57ef6dadd

Quote multiple words query

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 74245bafe48675a41eab259d20bc5a3e5e288fd9

Handle multiple arguments

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 5d45e61cab9d3fd3cb25d514ecf0b72dc479df33

Quote URL

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 5f091518abe7e2b3ff1ae9352ba5080bc4eccf2d

Use __main__

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 5aba9687d28a76c63907e3079c061bf3edeeb697

Print count

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 3b19500a366a2a30c6afacb28c3b1440badb48ed

Only download comments

view details

push time in 23 days

push eventsanxiyn/sandbox

Seo Sanghyeon

commit sha 909fbe0b8332ba260efa03fddac28110f44da925

Hacker News downloader

view details

push time in 23 days

delete branch lablup/backend.ai

delete branch : fix/logic-flow-of-cpuset-detection

delete time in a month

PR merged lablup/backend.ai

Make the logical flow of cpuset detection fallbacks clearer type:bug comp:agent type:refactor impact:invisible platform:general size:L

copilot:summary

copilot:walkthrough

+84 -44

0 comment

2 changed files

achimnol

pr closed time in a month

push eventlablup/backend.ai

Joongi Kim

commit sha 757e6e2d37c740c0ae9331b29847e25e9e77fb5e

Make the logical flow of cpuset detection fallbacks clearer (#1248)

view details

push time in a month

PullRequestReviewEvent

push eventlablup/etcetra

Seo Sanghyeon

commit sha 5e1a3c5974d6f3b23446f017674f9f7222a64353

Use finally

view details

push time in 2 months

PR opened lablup/etcetra

Reviewers
fix: Fix lock TTL

In #8, lease keepalive task was added. The intent was to preserve the lease between lock request and lock acquisition. By mistake, the lease keepalive continued after the lock acquisition, making the lock TTL ineffective. Therefore, cancel the lease keepalive task when the lock is acquired.

Also add a new test. In test_lock_ttl_2, lock with TTL expires at T+4 without keepalive, T+6 with this PR, and unlocks without expiration at T+8 before this PR.

+54 -8

0 comment

2 changed files

pr created time in 2 months

create barnchlablup/etcetra

branch : fix/lock-ttl

created branch time in 2 months

push eventlablup/backend.ai

Seo Sanghyeon

commit sha d5dd554caa20d2125beab49d3ebb119054dc0845

Execute namespace dependent operation in the new process

view details

push time in 2 months

Pull request review commentlablup/backend.ai

feat: Gather per-container network statistics

 async def sysfs_impl(container_id):                     e,                 )                 return None+            async with closing_async(Docker()) as docker:+                container = DockerContainer(docker, id=container_id)+                data = await container.show()+                sandbox_key = data["NetworkSettings"]["SandboxKey"]+            net_rx_bytes = 0+            net_tx_bytes = 0+            with nsenter(sandbox_key):+                nstat = psutil.net_io_counters(pernic=True)

Rather, this should be executed in the new process... See my new commit and comment there for details.

sanxiyn

comment created time in 2 months

PullRequestReviewEvent

Pull request review commentlablup/backend.ai

feat: Gather per-container network statistics

 async def sysfs_impl(container_id):                     e,                 )                 return None+            async with closing_async(Docker()) as docker:+                container = DockerContainer(docker, id=container_id)+                data = await container.show()+                sandbox_key = data["NetworkSettings"]["SandboxKey"]

I created a new issue for this: #1196.

sanxiyn

comment created time in 2 months

PullRequestReviewEvent

issue openedlablup/backend.ai

Index agent's kernel registry by backend-dependent key

Currently, agent's kernel registry is indexed by kernel_id, which is the backend-independent key. Backends are not aware of it, for example, Docker backend only knows about container_id of its containers.

Sometimes we need to look up kernel by backend-dependent key. Currently, we do this by creating a temporary index by iterating over entire kernel registry. kernel_id_map: Dict[ContainerId, KernelId] in stats.py is an example. Instead, we should make this index permanent and update it whenever kernel registry is updated.

created time in 2 months

PullRequestReviewEvent

Pull request review commentlablup/backend.ai

feat: Gather per-container network statistics

 async def sysfs_impl(container_id):                     e,                 )                 return None+            async with closing_async(Docker()) as docker:+                container = DockerContainer(docker, id=container_id)+                data = await container.show()+                sandbox_key = data["NetworkSettings"]["SandboxKey"]

Sure.

sanxiyn

comment created time in 3 months

Pull request review commentlablup/backend.ai

feat: Gather per-container network statistics

 async def sysfs_impl(container_id):                     e,                 )                 return None+            async with closing_async(Docker()) as docker:+                container = DockerContainer(docker, id=container_id)+                data = await container.show()+                sandbox_key = data["NetworkSettings"]["SandboxKey"]+            net_rx_bytes = 0+            net_tx_bytes = 0+            with nsenter(sandbox_key):+                nstat = psutil.net_io_counters(pernic=True)

Oops, you are right. This should be executed in the new thread.

sanxiyn

comment created time in 3 months

more