Closed Weijun-H closed 2 years ago
Hi @Weijun-H ~ Thanks for opening this issue! 🎉
Please make sure you have provided enough information for subsequent discussion.
We will get back to you as soon as possible. ❤️
Hi @Weijun-H ~
Is your container provided with enough memory? Could you please provide more information about your machine, like hardware, OS version, Docker version? If you are using Docker Desktop on macOS, I suggest you to increase the memory limit to 4GB or higher.
Hi @mrdrivingduck Here is Docker and Ubuntu version
Docker version 20.10.17, build 100c701
Linux version 5.4.0-110-generic (buildd@ubuntu) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #124-Ubuntu SMP Thu Apr 14 19:46:19 UTC 2022
Here is memory info
MemTotal: 16005396 kB
MemFree: 1673280 kB
MemAvailable: 11015920 kB
Buffers: 138092 kB
Cached: 10652724 kB
SwapCached: 0 kB
Active: 6172912 kB
Inactive: 7292776 kB
Active(anon): 2724788 kB
Inactive(anon): 1586192 kB
Active(file): 3448124 kB
Inactive(file): 5706584 kB
Unevictable: 18464 kB
Mlocked: 18464 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 2693488 kB
Mapped: 1411960 kB
Shmem: 1631448 kB
KReclaimable: 528596 kB
Slab: 712872 kB
SReclaimable: 528596 kB
SUnreclaim: 184276 kB
KernelStack: 19616 kB
PageTables: 43984 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 15205124 kB
Committed_AS: 13997112 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 30176 kB
VmallocChunk: 0 kB
Percpu: 7424 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
FileHugePages: 0 kB
FilePmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 325488 kB
DirectMap2M: 12912640 kB
DirectMap1G: 3145728 kB
@Weijun-H
By going through the backtrace, I notice that PostgreSQL cannot allocate more shared memory. So possible solutions include:
shared_buffers
in polardb_build.sh
?--shm-size
option of docker run
?@mrdrivingduck I have solved this problem by reconfiguring the OS settings. This problem is caused by the Greenplum installation.
Describe the problem
... When I tried to rerun
./polardb_build.sh --initpx
in dockerpolardb/polardb_pg_devel
, I met this error.I did not do anything except running that command.