tmpfs /run/user/???


OS : CentOS 7.x

실제 메모리의 10%(기본값)가 사용자 tmpfs 으로 잡혀 있다.

>$ df -h | grep tmpfs
tmpfs           794M     0  794M   0% /run/user/501

문제는 없지만 사용하지도 않고 보기 싫으니 용량을 줄여보자.

>$ /etc/systemd/logind.conf
#RuntimeDirectorySize=10%
RuntimeDirectorySize=32M

아래 명령어를 시작 하였지만 적용이 되지 않았다.

>$ systemctl daemon-reexec
>$ systemctl daemon-reload

할수 없이 리부팅 해본다. 적용 되었다.

>$ df -h | grep tmpfs
tmpfs            32M     0   32M   0% /run/user/501

참고 : https://www.freedesktop.org/software/systemd/man/logind.conf.html

ssh 접속 지연

원격으로 ssh 접속시 접속지연 현상
sshdconfig 설정 파일의 UseDNS 옵션을 no 으로 수정 *(기본값 : yes)_*

] vi /etc/ssh/sshd_config
# ... 이전 생략 ...
UseDNS no
# ... 이후 생략 ...

] service sshd restart 
# or 
] systemctl restart sshd

참고 자료
http://develop.sunshiny.co.kr/988