embeded/odroid2025. 9. 22. 22:10

aplay 로 목록을 보면나온다는데 안나오고

aplay -L 
null
    Discard all samples (playback) or generate zero samples (capture)
default
    Playback/recording through the PulseAudio sound server
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=ODROIDC2,DEV=0
    ODROID-C2, 
    Direct hardware device without any conversions
plughw:CARD=ODROIDC2,DEV=0
    ODROID-C2, 
    Hardware device with all software conversions
sysdefault:CARD=ODROIDC2
    ODROID-C2, 
    Default Audio Device
dmix:CARD=ODROIDC2,DEV=0
    ODROID-C2, 
    Direct sample mixing device
usbstream:CARD=ODROIDC2
    ODROID-C2
    USB Stream Output

[링크 : https://forums.libretro.com/t/odroid-c2-hdmi-audio-output-has-no-sound/10559]

 

커널 메시지 상으로도 이렇다할 무언가가 보이지 않는 느낌..

$ sudo dmesg | grep -i hdmi
[    0.069016] /soc/vpu@d0100000: Fixed dependency cycle(s) with /soc/hdmi-tx@c883a000
[    0.069037] /soc/hdmi-tx@c883a000: Fixed dependency cycle(s) with /soc/vpu@d0100000
[    0.073417] /soc/vpu@d0100000: Fixed dependency cycle(s) with /soc/hdmi-tx@c883a000
[    0.073562] /soc/vpu@d0100000: Fixed dependency cycle(s) with /soc/hdmi-tx@c883a000
[    0.073616] /soc/hdmi-tx@c883a000: Fixed dependency cycle(s) with /soc/vpu@d0100000
[    0.075830] /soc/hdmi-tx@c883a000: Fixed dependency cycle(s) with /hdmi-connector
[    0.075893] /hdmi-connector: Fixed dependency cycle(s) with /soc/hdmi-tx@c883a000
[    1.682512] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[    1.683044] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[    1.683310] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops 0xffff800081233b38)

 

정식 배포된 마지막 버전인 ubuntu mate 20.04로 한번 해보고 나오나봐야겠다.

Posted by 구차니
개소리 왈왈/컴퓨터2025. 9. 22. 22:03

입력은 HDMI 로 설정하고

 

핸드폰은 HDMI IN에 연결

모니터는 HDMI OUT(TV ARC)로 연결한다.

 

모니터도 LG꺼고 HDMI / DVI / D-USB가 있는 모델이나 스피커는 없어서 소리가 안나왔는데

이렇게 하고 하니 스피커로 소리가 따로 나온다. 신기한긴 한데..

HDMI 출력으로 리턴을 잘 안해줄때가 있는지 가끔 인식이 안되서 몇 번 뽑았다 꽂아야 해서 조금 불편.

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

abko k1924 적축 키보드 구매  (2) 2025.09.18
알리알리 알라성 알라리 알라 망했네?  (0) 2025.09.18
알리 부품 도착  (0) 2025.09.16
키보드 수리 2  (0) 2025.09.14
SK-8845RC USB 포트  (0) 2025.09.10
Posted by 구차니
Linux/Ubuntu2025. 9. 22. 22:00

odroid c2 / armbian 쓰는데 termiantor 가 기본 터미널이라 쓸데없이(!) 폰트만 커서 마음에 안들어

변경하는법 찾음. 단축키로는 x-terminal-emulator가 실행되고

이게 연결된 프로그램으로 넘겨주는 듯 한데, gnome-terminal이 간결하고 짱이지 ㅋ

$ sudo update-alternatives --config x-terminal-emulator
대체 항목 x-terminal-emulator에 대해 (/usr/bin/x-terminal-emulator 제공) 2개 선택이 있습니다.

  선택       경로                           우선순� 상태
------------------------------------------------------------
* 0            /usr/bin/terminator               50        자동 모드
  1            /usr/bin/gnome-terminal.wrapper   40        수동 모드
  2            /usr/bin/terminator               50        수동 모드

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/gnome-terminal.wrapper to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in manual mode

[link : https://stackoverflow.com/questions/16808231/how-do-i-set-default-terminal-to-terminator]

'Linux > Ubuntu' 카테고리의 다른 글

ts - moreutils  (0) 2025.09.26
intel dri 3?  (0) 2025.08.12
csvtool  (0) 2025.07.11
ubuntu dhcp lease log  (0) 2025.07.01
우분투에서 스타크래프트 시도.. 실패  (0) 2025.06.28
Posted by 구차니
프로그램 사용/rtl-sdr2025. 9. 21. 23:59

설치하려니까 아래 패키지들이 필요했다.

$ sudo apt-get install gnuradio-dev libliquid-dev liblog4cpp5-dev

 

-----

상세로그

$ cmake ../
-- The CXX compiler identification is GNU 13.3.0
-- The C compiler identification is GNU 13.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
CMake Error at CMakeLists.txt:87 (find_package):
  By not providing "FindGnuradio.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Gnuradio",
  but CMake did not find one.

  Could not find a package configuration file provided by "Gnuradio"
  (requested version 3.9) with any of the following names:

    GnuradioConfig.cmake
    gnuradio-config.cmake

  Add the installation prefix of "Gnuradio" to CMAKE_PREFIX_PATH or set
  "Gnuradio_DIR" to a directory containing one of the above files.  If
  "Gnuradio" provides a separate development package or SDK, be sure it has
  been installed.

 

$ sudo apt-get install gnuradio-dev

 

[ 30%] Building CXX object lib/CMakeFiles/gnuradio-lora.dir/message_socket_sink_impl.cc.o
/home/minimonk/src/gr-lora/lib/decoder_impl.cc:28:10: fatal error: liquid/liquid.h: No such file or directory
   28 | #include <liquid/liquid.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [lib/CMakeFiles/gnuradio-lora.dir/build.make:76: lib/CMakeFiles/gnuradio-lora.dir/decoder_impl.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:234: lib/CMakeFiles/gnuradio-lora.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

 

$ apt-cache search liquid
libliquid-dev - signal processing library for software defined radio (development files)
libliquid1 - signal processing library for software defined radio
liquidctl - CLI and Python drivers for AIO liquid coolers and other devices
liquidprompt - adaptative prompt for bash & zsh
liquidsoap - audio streaming language
liquidsoap-doc - Documentation for Liquidsoap
liquidsoap-mode - Emacs mode for editing Liquidsoap code
liquidwar - truly original multiplayer wargame
liquidwar-data - data files for Liquid War
liquidwar-server - Liquid War server
ruby-jekyll-gist - Liquid tag for displaying GitHub Gists in Jekyll sites
ruby-jekyll-include-cache - Jekyll plugin to cache the rendering of Liquid includes
ruby-liquid - Ruby library for rendering safe HTML and email templates
ruby-liquid-c - liquid performance extension in C

 

[ 45%] Linking CXX shared library libgnuradio-lora.so
/usr/bin/ld: cannot find -llog4cpp: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [lib/CMakeFiles/gnuradio-lora.dir/build.make:205: lib/libgnuradio-lora.so.1.0.0.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:234: lib/CMakeFiles/gnuradio-lora.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

 

$ apt-cache search log4cpp
liblog4cpp-doc - C++ library for flexible logging (documentation)
liblog4cpp5-dev - C++ library for flexible logging (development)
liblog4cpp5v5 - C++ library for flexible logging (runtime)

 

$ sudo apt-get install liblog4cpp5-dev

 

+

2025.09.22

gr-lora

s$ ./lora_receive_file_nogui.py
[?] Download test LoRa signal to decode? [y/N] y
[+] Downloading https://research.edm.uhasselt.be/probyns/lora/usrp-868.1-sf7-cr4-bw125-crc-0.sigmf-data -> ./example-trace.sigmf-data
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
[+] Downloading https://research.edm.uhasselt.be/probyns/lora/usrp-868.1-sf7-cr4-bw125-crc-0.sigmf-meta -> ./example-trace.sigmf-meta
.
.
[+] Configuration: 868.1 MHz, SF 7, CR 4/8, BW 125 kHz, prlen 8, crc on, implicit off
[+] Decoding. You should see a header, followed by 'deadbeef' and a CRC 5 times.
Bits (nominal) per symbol:      3.5
Bins per symbol:        128
Samples per symbol:     1024
Decimation:             8
vmcircbuf_prefs::get :info: /home/minimonk/.gnuradio/prefs/vmcircbuf_default_factory failed to open: bad true, fail true, eof true
 04 90 40 de ad be ef 70 0d (p)
 04 90 40 de ad be ef 70 0d (p)
 04 90 40 de ad be ef 70 0d (p)
 04 90 40 de ad be ef 70 0d (p)
 04 90 40 de ad be ef 70 0d (p)
[+] Done

 

실행실패

<<< Welcome to GNU Radio Companion 3.10.9.2 >>>

Block paths:
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks

Loading: "/home/minimonk/src/gr-lora/apps/lora_receive_realtime.grc"
>>> Done

Generating: "/home/minimonk/src/gr-lora/apps/lora_receive_realtime.py"
>>> Warning: This flow graph contains a throttle block and another rate limiting block, e.g. a hardware source or sink. This is usually undesired. Consider removing the throttle block.
>>> Warning: The block 'blocks_throttle_0' is deprecated.

Executing: /usr/bin/python3 -u /home/minimonk/src/gr-lora/apps/lora_receive_realtime.py

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
[INFO] [UHD] linux; GNU C++ version 13.2.0; Boost_108300; UHD_4.6.0.0+ds1-5.1ubuntu0.24.04.1
Traceback (most recent call last):
  File "/home/minimonk/src/gr-lora/apps/lora_receive_realtime.py", line 234, in <module>
    main()
  File "/home/minimonk/src/gr-lora/apps/lora_receive_realtime.py", line 212, in main
    tb = top_block_cls()
         ^^^^^^^^^^^^^^^
  File "/home/minimonk/src/gr-lora/apps/lora_receive_realtime.py", line 77, in __init__
    self.uhd_usrp_source_0 = uhd.usrp_source(
                             ^^^^^^^^^^^^^^^^
RuntimeError: LookupError: KeyError: No devices found for ----->
Empty Device Address

>>> Done (return code 1)

 

귀찮아서(!) wayland에서 x.org로 변경후 실행

[링크 : https://mokhwasomssi.tistory.com/427]

 

UHD :USRP source에서 RTL-SDR source로 바꾸고 일단 실행하니

먼가 그래프로 나오긴 한데.. LoRa가 없어서 지금은 머가 나오는진 모르겠다.

 

상단에 Variable 라고 된 것을

LoRa Receiver의 설정(?)에 변수로 연결해서 사용하는데

이전에 qt로 드래그 하는 식으로 하는걸 본거 같긴한디..

 

$ wget http://research.edm.uhasselt.be/~probyns/lora/gr-lora-samples.zip
$ unzip gr-lora-samples.zip

 

파일에서 하는걸로 해서 해보니 그래프에서 두번째 peak가 뜰때 데이터가 하나씩 나온다.

 

[링크 : https://github.com/rpp0/gr-lora]

[링크 : https://github.com/tapparelj/gr-lora_sdr]

 

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

rtlsdr + gnuradio + lora 일단.. 실패  (0) 2025.09.24
osmo sdr  (0) 2025.09.22
hackrf portapack (portable)  (0) 2025.09.11
gnuradio LoRa  (0) 2025.09.11
gnuradio dvb-t  (0) 2025.04.02
Posted by 구차니

odroid c2 / armbian 에서 빌드 성공, 실행 성공

 

실행하면 다음과 같이 나온다.

 

videotestsrc와 waylandsink 를 추가하는데

sink를 추가하니 오른쪽 끝에 스크롤 돌려서 나와서 추가딘지도 모르고 몇번을 눌렀으니 주의

 

src_0 와 sink_0 중에 골라서 드래그 하면 선으로 이어진다.

 

그리고 play 버튼을 누르면 하단에 videotestsrc가 실행되고 출력되는걸 확인할 수 있다.

 

우클릭하면 properties가 나오는데

 

머 이것저것 나오긴한다.

 

waylandsink로 프로퍼티를 보면

 

먼가 잔뜩 나오긴 한다. 머.. 이거야 capfilter를 통해서 설정해야 하는데, 참조하긴 충분하려나?

 

저장하고 파일을 열어보니 xml로 그래프 로 저장된다.

$ cat test 
<?xml version="1.0" encoding="utf-8"?>
<Graph id="0">
  <Node name="videotestsrc" id="1" type="Source" pos_x="41.492188" pos_y="111.921875">
    <Port name="src_0" id="1" direction="Output" presence="Always">
      <Property name="_caps" value="video/x-raw, format=(string){ A444_16LE, A444_16BE, AYUV64, RGBA64_LE, ARGB64, ARGB64_LE, BGRA64_LE, ABGR64_LE, RGBA64_BE, ARGB64_BE, BGRA64_BE, ABGR64_BE, A422_16LE, A422_16BE, A420_16LE, A420_16BE, A444_12LE, GBRA_12LE, A444_12BE, GBRA_12BE, Y412_LE, Y412_BE, A422_12LE, A422_12BE, A420_12LE, A420_12BE, A444_10LE, GBRA_10LE, A444_10BE, GBRA_10BE, A422_10LE, A422_10BE, A420_10LE, A420_10BE, BGR10A2_LE, RGB10A2_LE, Y410, A444, GBRA, AYUV, VUYA, RGBA, RBGA, ARGB, BGRA, ABGR, A422, A420, AV12, Y444_16LE, GBR_16LE, Y444_16BE, GBR_16BE, v216, P016_LE, P016_BE, Y444_12LE, GBR_12LE, Y444_12BE, GBR_12BE, I422_12LE, I422_12BE, Y212_LE, Y212_BE, I420_12LE, I420_12BE, P012_LE, P012_BE, Y444_10LE, GBR_10LE, Y444_10BE, GBR_10BE, r210, I422_10LE, I422_10BE, NV16_10LE32, Y210, UYVP, v210, I420_10LE, I420_10BE, P010_10LE, NV12_10LE40, NV12_10LE32, P010_10BE, MT2110R, MT2110T, NV12_10BE_8L128, NV12_10LE40_4L4, Y444, BGRP, GBR, RGBP, NV24, v308, IYU2, RGBx, xRGB, BGRx, xBGR, RGB, BGR, Y42B, NV16, NV61, YUY2, YVYU, UYVY, VYUY, I420, YV12, NV12, NV21, NV12_16L32S, NV12_32L32, NV12_4L4, NV12_64Z32, NV12_8L128, Y41B, IYU1, YUV9, YVU9, BGR16, RGB16, BGR15, RGB15, RGB8P, GRAY16_LE, GRAY16_BE, GRAY10_LE32, GRAY8 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], multiview-mode=(string){ mono, left, right }; video/x-bayer, format=(string){ bggr, rggb, grbg, gbrg, bggr10le, rggb10le, grbg10le, gbrg10le, bggr10be, rggb10be, grbg10be, gbrg10be, bggr12le, rggb12le, grbg12le, gbrg12le, bggr12be, rggb12be, grbg12be, gbrg12be, bggr14le, rggb14le, grbg14le, gbrg14le, bggr14be, rggb14be, grbg14be, gbrg14be, bggr16le, rggb16le, grbg16le, gbrg16le, bggr16be, rggb16be, grbg16be, gbrg16be }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], multiview-mode=(string){ mono, left, right }" />
    </Port>
  </Node>
  <Node name="waylandsink" id="4" type="Sink" pos_x="360.66797" pos_y="109.390625">
    <Port name="sink_0" id="4" direction="Input" presence="Always">
      <Property name="_caps" value="video/x-raw, format=(string){ AYUV, RGBA, ARGB, BGRA, ABGR, P010_10LE, v308, RGBx, xRGB, BGRx, xBGR, RGB, BGR, Y42B, NV16, NV61, YUY2, YVYU, UYVY, I420, YV12, NV12, NV21, Y41B, YUV9, YVU9, BGR16, RGB16 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw(memory:DMABuf), format=(string)DMA_DRM, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]" />
    </Port>
  </Node>
  <Link id="2" node_from="1" node_to="4" port_from="1" port_to="4" active="true" />
</Graph>

'프로그램 사용 > gstreamer' 카테고리의 다른 글

GstPipelineStudio install on armbian  (0) 2025.09.20
GstPipelineStudio install 실패  (0) 2025.09.20
gstpipelinestudio  (0) 2025.09.11
gstreamer 기초  (0) 2025.08.27
gstreamer pipeline  (0) 2025.08.22
Posted by 구차니

그래도 24.04 라서 그런가 20.04 보단 수월하게 설치되네

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04 LTS"

 

다만 git readme에 써있는것 보다는 조금 많은 걸 추가로 설치해야 한다.

sudo apt install python3-pip ninja-build pkg-config meson cmake libgstreamer-plugins-bad1.0-dev
sudo apt install libgtk-4-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
sudo apt install appstream-util gettext

[링크 : https://stackoverflow.com/questions/9500898/compiler-error-msgfmt-command-not-found]

[링크 : https://github.com/patrickelectric/GstPipelineStudio]

'프로그램 사용 > gstreamer' 카테고리의 다른 글

GstPipelineStudio on odroidc2  (0) 2025.09.21
GstPipelineStudio install 실패  (0) 2025.09.20
gstpipelinestudio  (0) 2025.09.11
gstreamer 기초  (0) 2025.08.27
gstreamer pipeline  (0) 2025.08.22
Posted by 구차니

odroid c2 / ubuntu mate 20.04

 

적힌거랑은 다르게 libgtk-4가 없어서 libgtk-3로 깔았는데

libgtk-3-dev

apt install python3-pip ninja-build pkgconfig
pip3 install --user meson
apt install libgtk-4-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

meson builddir -Dbuildtype=release
ninja -C builddir
./builddir/target/release/gst_pipeline_studio

 

2022년에 커밋된(가장 마지막으로) 녀석이라, 2020 년 버전으로는 무리인 듯.

commit 9e4e915b1d5c4603c312dcb007e0efbe137789af (HEAD -> main, origin/main, origin/HEAD)
Author: Stéphane Cerveau <scerveau@collabora.com>
Date:   Wed Feb 9 11:29:42 2022 +0100

    release: mention flathub for a new release

 

glibc가 낮으면 포기하는데 편하지

$ meson builddir -Dbuildtype=release

The Meson build system
Version: 1.9.0
Source dir: /home/odroid/GstPipelineStudio
Build dir: /home/odroid/GstPipelineStudio/builddir
Build type: native build
WARNING: Failed to load Cargo.lock: Could not find an implementation of tomllib, nor toml2json
Project name: gst_pipeline_studio
Project version: 0.2.3
Host machine cpu family: aarch64
Host machine cpu: aarch64
Program python3 found: YES (/usr/bin/python3)
WARNING: You should add the boolean check kwarg to the run_command call.
         It currently defaults to false,
         but it will default to true in meson 2.0.
         See also: https://github.com/mesonbuild/meson/issues/9300
Found pkg-config: YES (/usr/bin/pkg-config) 0.29.1
Dependency glib-2.0 found: NO. Found 2.64.6 but need: '>= 2.66'
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency glib-2.0 found: NO 

meson.build:13:0: ERROR: Dependency lookup for glib-2.0 with method 'pkgconfig' failed: Invalid version, need 'glib-2.0' ['>= 2.66'] found '2.64.6'.

A full log can be found at /home/odroid/GstPipelineStudio/builddir/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.

 

[링크  : https://github.com/patrickelectric/GstPipelineStudio]

'프로그램 사용 > gstreamer' 카테고리의 다른 글

GstPipelineStudio on odroidc2  (0) 2025.09.21
GstPipelineStudio install on armbian  (0) 2025.09.20
gstpipelinestudio  (0) 2025.09.11
gstreamer 기초  (0) 2025.08.27
gstreamer pipeline  (0) 2025.08.22
Posted by 구차니
프로그램 사용/iperf2025. 9. 19. 15:46

-A 3 하면 cpu3 에서만 function call interrupts가 많이 올라가고

-A 3-4 나 -A 3/4는 3에서만 올라간다. 정상적으로 구현이 안된건가?

 

$ cat /proc/interrupts 
            CPU0       CPU1       CPU2       CPU3       CPU4       CPU5       CPU6       CPU7       
 CAL:    5824227    4254156    5919589    3149051    2891279    2950553    2439272    2860177   Function call interrupts
$ man iperf3
       -A, --affinity n/n,m
              Set the CPU affinity, if possible (Linux, FreeBSD, and Windows only).  On both the  client
              and server you can set the local affinity by using the n form of this argument (where n is
              a CPU number).  In addition, on the client side you can override the server's affinity for
              just  that one test, using the n,m form of argument.  Note that when using this feature, a
              process will only be bound to a single CPU (as opposed to a set containing potentialy mul‐
              tiple CPUs).

 

$ iperf3 --help
Usage: iperf3 [-s|-c host] [options]
       iperf3 [-h|--help] [-v|--version]

Server or Client:
  -p, --port      #         server port to listen on/connect to
  -f, --format   [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits
  -i, --interval  #         seconds between periodic throughput reports
  -F, --file name           xmit/recv the specified file
  -A, --affinity n/n,m      set CPU affinity
  -B, --bind      <host>    bind to the interface associated with the address <host>
  -V, --verbose             more detailed output
  -J, --json                output in JSON format
  --logfile f               send output to a log file
  --forceflush              force flushing output at every interval
  --timestamps    <format>  emit a timestamp at the start of each output line
                            (using optional format string as per strftime(3))
  -d, --debug               emit debugging output
  -v, --version             show version information and quit
  -h, --help                show this message and quit
Server specific:
  -s, --server              run in server mode
  -D, --daemon              run the server as a daemon
  -I, --pidfile file        write PID file
  -1, --one-off             handle one client connection then exit
  --server-bitrate-limit #[KMG][/#]   server's total bit rate limit (default 0 = no limit)
                            (optional slash and number of secs interval for averaging
                            total data rate.  Default is 5 seconds)
  --rsa-private-key-path    path to the RSA private key used to decrypt
                            authentication credentials
  --authorized-users-path   path to the configuration file containing user
                            credentials
Client specific:
  -c, --client    <host>    run in client mode, connecting to <host>
  --sctp                    use SCTP rather than TCP
  -X, --xbind <name>        bind SCTP association to links
  --nstreams      #         number of SCTP streams
  -u, --udp                 use UDP rather than TCP
  --connect-timeout #       timeout for control connection setup (ms)
  -b, --bitrate #[KMG][/#]  target bitrate in bits/sec (0 for unlimited)
                            (default 1 Mbit/sec for UDP, unlimited for TCP)
                            (optional slash and packet count for burst mode)
  --pacing-timer #[KMG]     set the timing for pacing, in microseconds (default 1000)
  --fq-rate #[KMG]          enable fair-queuing based socket pacing in
                            bits/sec (Linux only)
  -t, --time      #         time in seconds to transmit for (default 10 secs)
  -n, --bytes     #[KMG]    number of bytes to transmit (instead of -t)
  -k, --blockcount #[KMG]   number of blocks (packets) to transmit (instead of -t or -n)
  -l, --length    #[KMG]    length of buffer to read or write
                            (default 128 KB for TCP, dynamic or 1460 for UDP)
  --cport         <port>    bind to a specific client port (TCP and UDP, default: ephemeral port)
  -P, --parallel  #         number of parallel client streams to run
  -R, --reverse             run in reverse mode (server sends, client receives)
  --bidir                   run in bidirectional mode.
                            Client and server send and receive data.
  -w, --window    #[KMG]    set window size / socket buffer size
  -C, --congestion <algo>   set TCP congestion control algorithm (Linux and FreeBSD only)
  -M, --set-mss   #         set TCP/SCTP maximum segment size (MTU - 40 bytes)
  -N, --no-delay            set TCP/SCTP no delay, disabling Nagle's Algorithm
  -4, --version4            only use IPv4
  -6, --version6            only use IPv6
  -S, --tos N               set the IP type of service, 0-255.
                            The usual prefixes for octal and hex can be used,
                            i.e. 52, 064 and 0x34 all specify the same value.
  --dscp N or --dscp val    set the IP dscp value, either 0-63 or symbolic.
                            Numeric values can be specified in decimal,
                            octal and hex (see --tos above).
  -L, --flowlabel N         set the IPv6 flow label (only supported on Linux)
  -Z, --zerocopy            use a 'zero copy' method of sending data
  -O, --omit N              omit the first n seconds
  -T, --title str           prefix every output line with this string
  --extra-data str          data string to include in client and server JSON
  --get-server-output       get results from server
  --udp-counters-64bit      use 64-bit counters in UDP test packets
  --repeating-payload       use repeating pattern in payload, instead of
                            randomized payload (like in iperf2)
  --username                username for authentication
  --rsa-public-key-path     path to the RSA public key used to encrypt
                            authentication credentials

[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-

iperf3 homepage at: https://software.es.net/iperf/
Report bugs to:     https://github.com/esnet/iperf

 

받거나 보내는 건 각각 1개의 프로세스에서만 하도록 되어있나 보다.

Set the CPU affinity for the sender (-A 2) or the sender, receiver (-A 2,3), where the core numbering starts at 0. This has the same effect as running numactl -C 4 iperf3.

iperf3 -c <dst-ip> -A 2,3 

[링크 : https://docs.nvidia.com/networking-ethernet-software/knowledge-base/Configuration-and-Usage/Monitoring/Throughput-Testing-and-Troubleshooting/]

'프로그램 사용 > iperf' 카테고리의 다른 글

iperf3 udp 속도 테스트 on rpi 4  (0) 2025.09.15
iperf3 jumbo packet?  (0) 2025.02.15
iperf 파일로 바로바로 떨궈서 tail로 보기  (0) 2025.02.10
iperf3  (0) 2023.07.28
iperf udp 테스트  (0) 2022.03.14
Posted by 구차니
Linux2025. 9. 19. 14:44

irq는 0번 cpu에서만 처리하는게 기본이었던 것 같은데

멀티코어 cpu가 기본이 되면서 irqbalance 라는 데몬이 생겨나서

cpu를 옮겨가면서 irq를 처리하는 cpu가 고정되지 않도록 하는 데몬이 생겨났나 보다.

이론적으로야 하나의 cpu가 아닌 돌아가면서 하거나 나눠서 할 것 같은데

옮기면서 처리량이 줄어드는 문제도 있을수 있으니 필요에 따라서는 로드밸런싱을 하지 않는게 유리할수도 있나 보다.

 

sudo systemctl disable irqbalance
sudo systemctl stop irqbalance

[링크 : https://pak-j.tistory.com/56]

[링크 : https://docs.redhat.com/ko/documentation/red_hat_enterprise_linux_for_real_time/9/html/optimizing_rhel_9_for_real_time_for_low_latency_operation/proc_disabling-the-irqbalance-daemon_assembly_binding-interrupts-and-processes]

 

아래는 irq의 cpu 할당(affinity)를 지정하는 명령인데 2005년 꺼라..

irqbalance 데몬이랑 어떻게 엮이려나.. 일단 테스트 해봐야 할 것 같다.

근데.. 내 노트북에서는 eth0가 안보이네 usb라서 그런가?

echo 3 > /proc/irq/31/smp_affinity
cat /proc/interrupts
           CPU0       CPU1       CPU2       CPU3      
   0:    4865302    5084964    4917705    5017077    IO-APIC-edge  timer
   1:        132        108        159        113    IO-APIC-edge  keyboard
   2:          0          0          0          0          XT-PIC  cascade
   8:          0          1          0          0    IO-APIC-edge  rtc
  10:          0          0          0          0   IO-APIC-level  usb-ohci
  14:          0          0          1          1    IO-APIC-edge  ide0
  24:      87298      86066      86012      86626   IO-APIC-level  aic7xxx
  31:      93707     106211     107988      93329   IO-APIC-level  eth0

[링크 : https://blog.naver.com/didorito/60012935114]

[링크 : https://docs.redhat.com/ko/documentation/red_hat_enterprise_linux/6/html/performance_tuning_guide/s-cpu-irq]

'Linux' 카테고리의 다른 글

sudo time  (0) 2025.09.17
dd 로 덤프 하면서 바로 압축하기  (0) 2025.07.24
gpiod - gpiomon  (0) 2025.07.17
scrub  (0) 2025.02.04
Block SCSI generic (bsg) driver  (0) 2024.04.16
Posted by 구차니
개소리 왈왈/컴퓨터2025. 9. 18. 23:11

중고로 구매함(1.8 -> 1.5)

첫 인상은 조용하다?

이전에 청축을 쓰다 보니 소리가 어마어마 했는데

확실히 아내가 시끄럽다고 할 만했구나 생각이 든다.

 

박스는 생각외로 두껍다. 머.. 키보드가 높이 5cm는 족히되는 듯.

 

투명 커버가 이쁘긴 하다. 그런데 머.. 버릴까 고민되는 중 ㅋ

 

 

PC방 자산 스티커는 좀 작게 해서 우측 상단에 빈 공간이 있는데 거기 붙이게 하지 이렇게 어중간하게 크게 했나 싶긴하다.

다행히 중고로 샀지만 모든 물품은 다 들어있는 듯.

 

레트로를 표방했으면 멀티미디어 기능키를 차라리 빼던가

넣을거면 키캡에 먼가 그려주긴 하던가 해야지?!?!?

 

 

다만 청축대비 밋밋한(?) 타건감이라고 하야하나? 누르는 맛이 약하긴 하다. 그러니까 조용한거겠지만. 

키압은 45g 이라는데 이전 청축보다 확실히 가벼운건지

아니면 거의 리니어하게 꾸준히 45g 이라서 반발이 적은건지 모르겠지만

청축때 보다는 확실히 가볍게 타이핑이 되는 느낌이다.

다이소 멤브레인 보다 더 가볍게 눌리는 느낌이라 부드러워서 좋다고 해야하나

무게감이 없어서 허전하다고 해야하나 ㅎㅎ

[링크 : https://prod.danawa.com/info/?pcode=28450715]

 

LED 인디케이터는 먼가 좀 너무 좁게 되어 있어서 아쉬운데

 

그 와중에 화이트 LED다. 레트로 갬성이라매???

 


아무튼 개인적으로 아쉬운 점은 레트로로 가려고 했으면 확실하게(?)

LED 도 키패드 넓이만큼 넓혀서 녹색 LED로 하면 더 좋지 않았을까 하는 생각이 든다.

옛날에는 다 이런 갬성이었으니까? ㅎㅎ

[링크 : https://baboaqs.gitlab.io/post/2018-10-14-old_keyboard_lgibm/]

 

일단은 아직까지는 대만족중

회사랑 집에 하나씩 놓고 쓸까 싶어진다.

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

lg sh5 hdmi arc  (0) 2025.09.22
알리알리 알라성 알라리 알라 망했네?  (0) 2025.09.18
알리 부품 도착  (0) 2025.09.16
키보드 수리 2  (0) 2025.09.14
SK-8845RC USB 포트  (0) 2025.09.10
Posted by 구차니