'Programming > python(파이썬)' 카테고리의 다른 글
python openCV / PIL 포맷 변경 (0) | 2022.04.12 |
---|---|
파이썬 딕셔너리 변수 생성과 리턴 enumerate, zip (0) | 2022.04.12 |
pdb (0) | 2022.03.14 |
python debug (pdb) (0) | 2022.03.04 |
opencv python (0) | 2022.02.25 |
python openCV / PIL 포맷 변경 (0) | 2022.04.12 |
---|---|
파이썬 딕셔너리 변수 생성과 리턴 enumerate, zip (0) | 2022.04.12 |
pdb (0) | 2022.03.14 |
python debug (pdb) (0) | 2022.03.04 |
opencv python (0) | 2022.02.25 |
imshow만 하면 검은 창만 비어서 나오는데
waitKey()로 메시지 루프(?)를 돌리지 않아서 그렇다고 한다.
virtual mouse (0) | 2022.01.25 |
---|---|
opencv-3.4.0 어플리케이션 빌드 (0) | 2021.01.14 |
opencv face detect (0) | 2019.05.10 |
vscode python3 opencv lint (0) | 2019.05.10 |
opencv cannyedge (0) | 2019.01.16 |
$ pdb chcker.py > /home/minimonk/src/py/chcker.py(1)<module>() -> import numpy as np (Pdb) run Restarting chcker.py with arguments: > /home/minimonk/src/py/chcker.py(1)<module>() -> import numpy as np (Pdb) list 1 -> import numpy as np 2 import cv2 3 import glob 4 # termination criteria 5 criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) 6 # prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0) 7 objp = np.zeros((6*7,3), np.float32) 8 objp[:,:2] = np.mgrid[0:7,0:6].T.reshape(-1,2) 9 # Arrays to store object points and image points from all the images. 10 objpoints = [] # 3d point in real world space 11 imgpoints = [] # 2d points in image plane. (Pdb) n > /home/minimonk/src/py/chcker.py(2)<module>() -> import cv2 (Pdb) n ImportError: 'No module named cv2' > /home/minimonk/src/py/chcker.py(2)<module>() -> import cv2 (Pdb) q |
$ whereis pdb pdb: /usr/bin/pdb2.7 /usr/bin/pdb /usr/bin/pdb3.6 /usr/share/man/man1/pdb.1.gz $ ls -al /usr/bin/pdb* lrwxrwxrwx 1 root root 6 4월 16 2018 /usr/bin/pdb -> pdb2.7 lrwxrwxrwx 1 root root 23 2월 28 2021 /usr/bin/pdb2.7 -> ../lib/python2.7/pdb.py lrwxrwxrwx 1 root root 6 1월 28 12:37 /usr/bin/pdb3 -> pdb3.6 lrwxrwxrwx 1 root root 23 12월 9 06:08 /usr/bin/pdb3.6 -> ../lib/python3.6/pdb.py $ ls -al /usr/lib/python3. python3.6/ python3.7/ python3.8/ $ ls -al /usr/lib/python3.6/pdb.py -rwxr-xr-x 1 root root 61310 12월 9 06:08 /usr/lib/python3.6/pdb.py |
파이썬 딕셔너리 변수 생성과 리턴 enumerate, zip (0) | 2022.04.12 |
---|---|
python3 opencv2 checker board (0) | 2022.03.14 |
python debug (pdb) (0) | 2022.03.04 |
opencv python (0) | 2022.02.25 |
python / opencv mouse event (0) | 2022.02.25 |
흐음.. 로컬로 쐈는데 이정도면.. 성능 엄청 안 좋은건가?
아무튼 893번을 보내고 또 10번을 더 보내서 총 903번의 전송이 발생하는 것으로 보인다.
$ iperf -u -p 16000 -c localhost ------------------------------------------------------------ Client connecting to localhost, UDP port 16000 Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust) UDP buffer size: 208 KByte (default) ------------------------------------------------------------ [ 3] local 127.0.0.1 port 49969 connected with 127.0.0.1 port 16000 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec [ 3] Sent 893 datagrams [ 3] WARNING: did not receive ack of last datagram after 10 tries. |
[링크 : https://idchowto.com/iperf-를-이용한-네트워크-성능-측정/]
[링크 : https://chanind.github.io/2020/05/15/network-bandwidth-stress-testing-iperf.html]
+
i5-2520m 이고 로컬로 했는데 저조하네..
서버
$ iperf -u -p 16000 -s localhost iperf: ignoring extra argument -- localhost ------------------------------------------------------------ Server listening on UDP port 16000 Receiving 1470 byte datagrams UDP buffer size: 208 KByte (default) ------------------------------------------------------------ [ 3] local 127.0.0.1 port 16000 connected with 127.0.0.1 port 59209 [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.003 ms 0/ 893 (0%) |
클라이언트
$ iperf -u -p 16000 -c localhost ------------------------------------------------------------ Client connecting to localhost, UDP port 16000 Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust) UDP buffer size: 208 KByte (default) ------------------------------------------------------------ [ 3] local 127.0.0.1 port 59209 connected with 127.0.0.1 port 16000 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec [ 3] Sent 893 datagrams [ 3] Server Report: [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.000 ms 0/ 893 (0%) |
+
i7-10510U 라고 해도 별다를 건 없어 보이네?
서버
$ iperf -u -p 16000 -s localhost iperf: ignoring extra argument -- localhost ------------------------------------------------------------ Server listening on UDP port 16000 Receiving 1470 byte datagrams UDP buffer size: 208 KByte (default) ------------------------------------------------------------ [ 3] local 127.0.0.1 port 16000 connected with 127.0.0.1 port 44436 [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.011 ms 0/ 893 (0%) |
클라이언트
$ iperf -u -p 16000 -c localhost ------------------------------------------------------------ Client connecting to localhost, UDP port 16000 Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust) UDP buffer size: 208 KByte (default) ------------------------------------------------------------ [ 3] local 127.0.0.1 port 44436 connected with 127.0.0.1 port 16000 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec [ 3] Sent 893 datagrams [ 3] Server Report: [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.000 ms 0/ 893 (0%) |
+
-b 옵션을 통해 대역폭을 늘리니 cpu 사용율이 폭증한다.
dmesg log_buf_len (0) | 2022.06.29 |
---|---|
bash set -e set -x (0) | 2022.06.22 |
linux cache clear (0) | 2022.02.11 |
sort 컬럼 별 정렬하기 (0) | 2022.02.08 |
elementary os (0) | 2022.01.28 |
댓글을 달아 주세요