데이터베이스 내 각 테이블 용량 확인(내림차순)
# DataBase/Mysql(MariaDB)2023. 12. 20. 16:06데이터베이스 내 각 테이블 용량 확인(내림차순)

SELECT table_name AS "테이블명", round(((data_length + index_length) / 1024 / 1024), 2) AS "테이블 용량(MB)" FROM information_schema.tables WHERE table_schema = 'your_database_name' ORDER BY (data_length + index_length) DESC;

[mysql]innodb 메모리별 설정값 예시
# DataBase/Mysql(MariaDB)2022. 9. 29. 08:25[mysql]innodb 메모리별 설정값 예시

​ default_storage_engine = InnoDB 기본 데이타베이스 엔진으로 InnoDB를 사용한다는 것 표시 innodb_buffer_pool_size 운영중인 시스템의 DB 크기 이상을 할당. 시스템 메모리의 65%~75% 권장, 시스템 메모리 8GB RAM라면 일반적으로 5~6GB 정도 할당. buffer pool이 너무 작으면 페이지가 buffer pool에서 플러시 되어 잠시 후 다시 필요하게 되므로 과도한 I/O 가 발생할 수 있으며, 너무 큰 경우 메모리 경쟁으로 스와핑이 발생할 수 있음. innodb_log_file_size 데이타베이스 충돌 발생 시 다시 실행하거나 이전으로 되돌릴 때 사용하는 메모리. 지나치게 크면 복구 시간이 길어지면서 비효율적이 될 수 있음. 위에서 설정한..

[vmware]esxi 메모리 타입 및 용량, 슬롯 확인
# Virtualation/Private Cloud2020. 2. 6. 10:06[vmware]esxi 메모리 타입 및 용량, 슬롯 확인

# smbiosDump |grep -A 4 'Physical Memory Array' sample output below Physical Memory Array: #4096 Use: 0x03 (System memory) Location: 0x03 (Motherboard) Slots: 24 Max. Size: 1536 GB This shows that 24 slots and a total of 1536 GB of memory can be installed. So this server can be filled with 24x64GB sticks of memory. Secondly which slots have memory installed, along with type and size. # smbiosDum..

image