> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# page_cache_* 세션 설정

> page_cache_* 생성 그룹에 속한 ClickHouse 세션 설정입니다.

export const VersionHistory = ({rows = []}) => {
  if (rows.length === 0) {
    return null;
  }
  const headers = ["버전", "기본값", "설명"];
  const border = "1px solid rgba(128, 128, 128, 0.3)";
  const cell = {
    border,
    padding: "0.25rem 0.5rem",
    textAlign: "start",
    verticalAlign: "top"
  };
  return <details className="not-prose" style={{
    border,
    borderRadius: "0.5rem",
    margin: "0.5rem 0",
    padding: "0.5rem 0.75rem",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <summary style={{
    cursor: "pointer",
    fontWeight: 600,
    opacity: 0.72
  }}>
        버전 이력
      </summary>
      <table style={{
    borderCollapse: "collapse",
    width: "100%",
    margin: "0.5rem 0 0"
  }}>
        <thead>
          <tr>
            {headers.map(header => <th key={header} style={{
    ...cell,
    fontWeight: 600,
    opacity: 0.72
  }}>
                {header}
              </th>)}
          </tr>
        </thead>
        <tbody>
          {rows.map((row, row_index) => <tr key={row.id ?? row_index}>
              {(row.items ?? []).map((item, item_index) => <td key={item_index} style={{
    ...cell,
    overflowWrap: "anywhere"
  }}>
                  {item?.label}
                </td>)}
            </tr>)}
        </tbody>
      </table>
    </details>;
};

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>유형</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>기본값</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          재시작 없이 변경 가능
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

이 설정은 [system.settings](/ko/reference/system-tables/settings)에서 확인할 수 있으며, [소스 코드](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp)를 기반으로 자동 생성됩니다.

<div id="page_cache_block_size">
  ## page\_cache\_block\_size
</div>

<SettingsInfoBlock type="UInt64" default_value="1048576" />

사용자 공간 페이지 캐시에 저장할 파일 청크의 크기(바이트)입니다. 캐시를 통해 수행되는 모든 읽기는 이 크기의 배수로 올림됩니다.

이 설정은 쿼리 단위로 조정할 수 있지만, 블록 크기가 다른 캐시 엔트리는 재사용할 수 없습니다. 이 설정을 변경하면 사실상 캐시에 있는 기존 엔트리가 무효화됩니다.

1 MiB와 같은 더 큰 값은 고처리량 쿼리에 적합하고, 64 KiB와 같은 더 작은 값은 지연 시간이 낮은 단건 쿼리에 적합합니다.

<div id="page_cache_inject_eviction">
  ## page\_cache\_inject\_eviction
</div>

<SettingsInfoBlock type="Bool" default_value="0" />

사용자 공간 페이지 캐시는 때때로 일부 페이지를 임의로 무효화합니다. 테스트용으로 предназнач되었습니다.

<div id="page_cache_lookahead_blocks">
  ## page\_cache\_lookahead\_blocks
</div>

<SettingsInfoBlock type="UInt64" default_value="16" />

사용자 공간 페이지 캐시에서 캐시 미스가 발생하면, 연속된 블록도 캐시에 없는 경우 기반 저장소에서 한 번에 최대 이 수만큼 읽습니다. 각 블록의 크기는 page\_cache\_block\_size바이트입니다.

값이 클수록 고처리량 쿼리에 유리하며, 지연 시간이 중요한 단건 쿼리는 readahead 없이 더 잘 동작합니다.

<div id="page_cache_max_coalesced_bytes">
  ## page\_cache\_max\_coalesced\_bytes
</div>

<SettingsInfoBlock type="UInt64" default_value="16777216" />

`readBigAt`가 사용자 공간 페이지 캐시를 채울 때 연속된 캐시 미스는 기반 저장소에서 한 번의 읽기로 병합됩니다. 이 설정은 병합 읽기 1회의 크기를 바이트 단위로 제한합니다. 미스 구간이 더 길면 여러 번의 읽기로 분할됩니다. 병렬 콜드 읽기 시 임시 버퍼의 일시적 메모리 사용량을 제한합니다.

값이 클수록 객체 스토리지의 콜드 스캔에서 HTTP 요청 수가 줄어들고, 값이 작을수록 일시적 최대 메모리 사용량이 줄어듭니다.
