Good morning,
I have a Greenplum cluster with three resource queues configured. Together they are configured to use 90% of the gp_vmem_protect_limit. I’m still seeing occasional errors like:
“ERROR: Canceling query because of high VMEM usage. Used: 204MB, available 813MB, red zone: 7372MB”
So I have a couple questions.
Thanks for any help you can provide!
Kurt
Thanks Kevin! The superuser being exempt from resource queues could be my answer. We’re running some maintenance tasks with a super user. I altered pg_default, but I will try making a regular user to do those tasks.
gp_vmem_protect_limit is set to 8192MB.
A resource queue for queries is set to 5836MB and 50 statements
A resource queue for ingesting data is set to 1024MB and 8 statements
Pg_default is set to 512MB and 4 statements
4 segment nodes, 128GB memory each, 8 segments + 8 mirrors on each node.
From:
Kevin Huang <kchua...@gmail.com>
Date: Tuesday, May 9, 2023 at 3:15 PM
To: Greenplum Users <gpdb-...@greenplum.org>
Cc: Kurtis Walker <kurtis...@sugarcrm.com>
Subject: Re: VMEM Errors
EXTERNAL EMAIL
This message generally gets triggered if runaway_detector_activation_percent setting is exceeded. Either a query used up a large amount of VMEM or there are many queries running and this query happened to exceed the threshold.
1.) From documentation, it mentions superusers are exempt from resource queue rules:
Superusers are exempt from resource queue limits, therefore superuser queries always run regardless of the limits set on their assigned queue
2.) The numbers do seem low compared to the red zone. Would be good if you could share complete details of the resource queue 8 as well as gp_vmem_protect_limit value, RAM, number of segments, etc.
It turns out that COPY statements do not respect the memory rules set up with resource queues. I am exploring using resource groups instead. Two questions:
Thanks again for the help!
Kurt
--
You received this message because you are subscribed to the Google Groups "Greenplum Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
gpdb-users+...@greenplum.org.
To view this discussion on the web visit
https://groups.google.com/a/greenplum.org/d/msgid/gpdb-users/CY4PR0101MB3080E6489CBA8B2C9FA9C63591779%40CY4PR0101MB3080.prod.exchangelabs.com.