presto-main/src/main/java/io/prestosql/SystemSessionProperties.java/SystemSessionProperties/getQueryMaxTotalMemory
class SystemSessionProperties:    public static DataSize getQueryMaxTotalMemory(Session session)
    {
        return session.getSystemProperty(QUERY_MAX_TOTAL_MEMORY, DataSize.class);
    }