Linux/Ubuntu2020. 9. 1. 15:36

HPL(High Performance LINPACK) 을 한번 돌려봄.

특이하게(?)도 openMPI를 통해서만 구동이 되고, 단독으로 실행시 아래의 에러가 발생한다.

$  ../xhpl 
HPL ERROR from process # 0, on line 419 of function HPL_pdinfo:
>>> Need at least 4 processes for these tests <<<

HPL ERROR from process # 0, on line 621 of function HPL_pdinfo:
>>> Illegal input in file HPL.dat. Exiting ... <<<

[링크 : https://cs.kaist.ac.kr/upload_files/report/1227159241.pdf]

 

checking for dgemm_ in OpenBLAS... checking for dgemm_ in -lopenblas... no
no
configure: error: BLAS not found

libatlas-base-dev 패키지 설치

[링크 : https://qastack.kr/ubuntu/623578/installing-blas-and-lapack-packages]

 

In file included from ../include/hpl.h:80:0,
                 from auxil/HPL_dlatcpy.c:50:
../include/hpl_pmisc.h:54:10: fatal error: mpi.h: 그런 파일이나 디렉터리가 없습니다
 #include "mpi.h"
          ^~~~~~~

libopenmpi-dev, mpich 패키지 설치 이후 configure 재실행

[링크 : https://stackoverflow.com/questions/26920083/fatal-error-mpi-h-no-such-file-or-directory-include-mpi-h]

 

 

+

~/src/hpl-2.3/testing/ptest$ mpirun --allow-run-as-root -np 4 ../xhpl

[링크 : https://conservative-vector.tistory.com/entry/도커에서-HPL-이용하기]

[링크 : https://github.com/spack/spack/issues/6340]

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

pinta vs xpaint  (0) 2020.09.02
한컴 오피스 뷰어 / 우분투  (0) 2020.09.01
ubuntu 18.04 UEFI로 설치하기  (0) 2020.09.01
sysbench cpu 벤치마크 하기  (0) 2020.07.14
ubuntu 노트북에서 gpsd 테스트  (0) 2020.04.19
Posted by 구차니
Linux/Ubuntu2020. 9. 1. 15:25

별건(?) 없고 EFI 파티션을 하나 추가해주면 된다.

swap 처럼 파일 시스템이 efi로 지정되며 마운트 포인트가 추가되진 않는다.

[링크 : https://lucycle.tistory.com/266]

 

우분투 도움말로는 100~250MB 정도로 설정하면 되는 듯

[링크 : https://help.ubuntu.com/community/DiskSpace]

 

일단은 검색해보니 최소 용량은 UEFI 스펙상 정의 되어 있지 않고

MS에서는 100MB로 사용하고 있다고 한다. (256MB를 주었는데 너무 컸나..)

[링크 : https://superuser.com/questions/1310927/]

Posted by 구차니
Linux/Ubuntu2020. 7. 14. 10:46

cpu-max-prime의 숫자를 늘리면 오래 돌아간다.

48 코어에서 돌리니 금세 끈나네.. 200000으로 해도

 

$ sysbench cpu --events=10000 --cpu-max-prime=20000 --time=0 --threads=6 run

[링크 : https://blog.lael.be/post/4279]

Posted by 구차니
Linux/Ubuntu2020. 4. 19. 21:56

라즈베리에서 하려니 전원 문제랑 네트워크 문제로 밖에서 테스트 하지 못해서

노트북에 우분투 깔려있으니 USB 시리얼 이용해서 한번 시도해 봄

 

아래 두개 설치하면 되는 듯(gpsd-clinets에 gpsmon이 들어있다)

$ sudo apt-get install gpsd gpsd-clients

설치중에 보니 socket 경로가 /var/run/ 으로 되어있지 않네..

Created symlink /etc/systemd/system/sockets.target.wants/gpsd.socket → /lib/systemd/system/gpsd.socket.

 

$ ll /etc/systemd/system/sockets.target.wants/gpsd.socket 
lrwxrwxrwx 1 root root 31  4월 19 21:54 /etc/systemd/system/sockets.target.wants/gpsd.socket -> /lib/systemd/system/gpsd.socket

$ ll /lib/systemd/system/gpsd.socket
-rw-r--r-- 1 root root 211 12월 28  2017 /lib/systemd/system/gpsd.socket

 

아까 adafruit 에서 손을 본 이유가.. 기본으로는 /var/run/gpsd.sock 으로 해두었는데

해당 패키지 설치시 /lib/systemd/system/gpsd.socket으로 만들어서 그런 듯

$ vim /etc/init.d/gpsd

 36 # Read configuration variable file if it is present
 37 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
 38 
 39 if [ -z "$GPSD_SOCKET" ] && [ -z "$DEVICES" ]; then
 40         GPSD_SOCKET=/var/run/gpsd.sock

 

그리고 gpsmon을 처음 실행할때 문제인지 모르겠지만 root 권한으로 해주어야

초기화가 진행되어 gps로 부터 값을 받아오는 것으로 보인다.

$ sudo gpsmon

$ gpsmon

 

베란다에서 쭈꾸려 앉아서 테스트.

일단은 위도 경도 나오는 걸 봐서는 정상적으로 잡힌 것 같다.

 

그리고 GPS 보드에서도 위치 정보가 받아지니 1초 간격으로 빨간색 LED가 점멸한다.

 

Posted by 구차니
Linux/centos2020. 4. 1. 16:59

drwr-xr-x. 이라고 표시되는 게 있는데

selinux security context가 있을 경우 . 으로 표기 된다고 한다.

+로 표기 되는건 다른 alternate access method의 조합이 있을 경우라는데 그게 어떤 의미인진 모르겠다.

setfacl로 세부 조정된 내용이 있으면 +가 뜨는 걸까?

 

from info coreutils 'ls invocation' under Linux

GNU `ls' uses a `.' character to indicate a file with an SELinux
     security context, but no other alternate access method.

A file with any other combination of alternate access methods is
     marked with a `+' character.

[링크 : https://stackoverflow.com/.../what-does-the-dot-at-the-end-of-the-permissions-in-the-output-of-ls-lah-mean]

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

centos stream?  (0) 2020.12.10
centos 8.2 네트워크 설정  (0) 2020.12.02
centos7 minimal / X11 사용하기  (0) 2020.02.04
리눅스 로그인 실패 로그  (2) 2019.07.07
centos7 USB 설치 중 /dev/root dose not exist 에러  (0) 2019.07.02
Posted by 구차니
Linux/centos2020. 2. 4. 12:57

패키지 설치

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=6979708]

 

 

sshd_config 설정

[링크 : https://stackoverflow.com/questions/38961495/x11-forwarding-request-failed-on-channel-0]

AllowTcpForwarding yes 
#GatewayPorts no 
X11Forwarding yes 
X11DisplayOffset 10 
#X11UseLocalhost no 
#PermitTTY yes 
PrintMotd no 
PrintLastLog yes 
TCPKeepAlive yes 
#UseLogin no 
UsePrivilegeSeparation sandbox 

[링크 : https://sonumb.tistory.com/79]

[링크 : https://harryp.tistory.com/684]

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

centos 8.2 네트워크 설정  (0) 2020.12.02
ls 퍼미션에 .의 의미  (0) 2020.04.01
리눅스 로그인 실패 로그  (2) 2019.07.07
centos7 USB 설치 중 /dev/root dose not exist 에러  (0) 2019.07.02
httpd + php + selinux..  (0) 2019.03.20
Posted by 구차니
Linux2020. 1. 13. 11:55

 

언제부터인지 확실히는 알 수 없으나

리눅스에서 메모리가 넉넉하면(이게 전제조건이라 발동하는걸 이제 본걸지도?)

디스크 IO를 캐싱한다.

pagecache 1은 파일의 내용을

pagecache 2는 파일의 속성 및 디렉토리 정보 등을 캐싱한다고 하는데

메모리가 몇 기가 이상이어야 캐싱을 하는지 이런것들에 대한 정보를 찾으려고 해도 보이질 않는다.

 

pagecache 해제 
echo 1 > /proc/sys/vm/drop_caches 

dentries, inodes 해제 
echo 2 > /proc/sys/vm/drop_caches 

pagecache, dentries, inodes 모두 해제 
echo 3 > /proc/sys/vm/drop_caches

[링크 : https://zetawiki.com/wiki/리눅스_캐시_메모리_비우기]

[링크 : https://en.wikipedia.org/wiki/Page_cache]

 

[링크 : https://www.linuxatemyram.com/play.html]

[링크 : https://www.thegeekdiary.com/how-to-clear-the-buffer-pagecache-disk-cache-under-linux/]

[링크 : https://discuss.aerospike.com/t/how-to-tune-the-linux-kernel-for-memory-performance/4195]

 

+

2.2 kernel 부터 들어있었으면 정말 오래전 부터인데. 메모리 양에 작동을 하던거라 존재를 몰랐을 뿐인건가?

The term, Buffer Cache, is often used for the Page Cache. Linux kernels up to version 2.2 had both a Page Cache as well as a Buffer Cache. As of the 2.4 kernel, these two caches have been combined. Today, there is only one cache, the Page Cache.

[링크 : https://www.thomas-krenn.com/en/wiki/Linux_Page_Cache_Basics]

'Linux' 카테고리의 다른 글

find -mmin  (0) 2020.12.04
linux 스토리지 정보  (0) 2020.10.14
dmesg 시간 환산하기  (0) 2020.01.07
screen 사용법  (0) 2019.12.18
byobu  (0) 2019.12.18
Posted by 구차니
Linux/Ubuntu2020. 1. 11. 23:06

/var/crash에 파일이 있으면 보고하는거라고 하는데

[링크 : https://moordev.tistory.com/152]

 

오늘자로 크롬관련 에러도 있고 머지...

크롬을 재설치 해봐야하는건가..

 

/var/crash$ ll
합계 16884
drwxrwsrwt  2 root     whoopsie     4096  1월 10 19:16 ./
drwxr-xr-x 14 root     root         4096  8월  6 04:11 ../
-rw-r-----  1 root     whoopsie    42510  1월  8 18:57 _usr_bin_isdv4-serial-inputattach.0.crash
----------  1 minimonk whoopsie 17235968  1월 10 19:17 _usr_lib_chromium-browser_chromium-browser.1000.crash

 

isdv4 어쩌구는.. 설마했는데 wacom 타블렛 관련 드라이버..

도대체 애네가 왜 오류가 나지?

[링크 : https://github.com/linuxwacom/xf86-input-wacom/blob/master/tools/isdv4-serial-inputattach.c]

 

+

일단 한번 뿐이긴 하지만 해당 디렉토리의 파일을 삭제하고 다시 발생하고 있진 않다.

바보 같이 잘못설치되서 포맷할뻔 -_-

Posted by 구차니
Linux/Ubuntu2020. 1. 8. 19:24

아래 한줄 넣어주고 리부팅 하니 뚜껑 닫아도 절전모드로 들어가지 않는다.

pm-utils는 cpufreq 확장 설치하면서 끌려온거 같은데 안되면 해당 패키지 설치해야 한다고 한다.

 

$ sudo vi /etc/systemd/logind.conf

#HandleLidSwitch=suspend
HandleLidSwitch=ignore

 

[링크 : http://tipsonubuntu.com/2018/04/28/change-lid-close-action-ubuntu-18-04-lts/]

Posted by 구차니
Linux2020. 1. 7. 13:11

어느정도 버전 이후 부터는 -T 옵션을 주면 일반적인 시간으로 출력이 된다.

(centos 7 이후 버전. ubuntu는 잘 모르겠지만 19.04에서는 기본으로 지원된다)

 

[링크 : https://allthatlinux.com/dokuwiki/doku.php?id=dmesg_시간_출력]

[링크 : https://serverfault.com/questions/366392/how-to-convert-dmesg-time-format-to-real-time-format]

'Linux' 카테고리의 다른 글

linux 스토리지 정보  (0) 2020.10.14
linux page cache  (0) 2020.01.13
screen 사용법  (0) 2019.12.18
byobu  (0) 2019.12.18
cool-retro-term  (0) 2019.12.16
Posted by 구차니