Gentoo Archives: gentoo-user-ru

From: Vladimir Solomatin <slash@×××××.ru>
To: gentoo-user-ru@l.g.o
Subject: Re: [gentoo-user-ru] gentoo, 1c, postgres, shm*
Date: Mon, 14 Feb 2011 11:55:23
Message-Id: 4D5917FE.6020105@relex.ru
In Reply to: [gentoo-user-ru] gentoo, 1c, postgres, shm* by "Кучма Кирилл"
1 On 02/14/2011 08:40 AM, Кучма Кирилл wrote:
2
3 System uname:
4 Linux-2.6.32-hardened-r31-x86_64-AMD_Phenom-tm-_II_X4_925_Processor-with-gentoo-2.0.1
5
6 Portage 2.1.9.25 (hardened/linux/amd64/no-multilib, gcc-4.4.4,
7 glibc-2.11.2-r3, 2.6.32-hardened-r31 x86_64)
8
9 sys-fs/udev-151-r4 USE="-devfs-compat -extras -old-hd-rules (-selinux)
10 -test" 0 kB
11
12
13 CONFIG_SHMEM=y
14 CONFIG_MMU=y
15 # CONFIG_GART_IOMMU is not set
16 # CONFIG_CALGARY_IOMMU is not set
17 # CONFIG_AMD_IOMMU is not set
18 CONFIG_IOMMU_HELPER=y
19 CONFIG_IOMMU_API=y
20
21 # sysctl -a | grep -E '(shmmax|shmall|shmmni)'
22 kernel.shmmax = 33554432
23 kernel.shmall = 2097152
24 kernel.shmmni = 4096
25
26 у тебя в конфиге:
27
28 CONFIG_GART_IOMMU=y
29 Support for full DMA access of devices with 32bit memory access only on
30 systems with more than 3GB. This is usually needed for USB, sound, many
31 IDE/SATA chipsets and some other devices. Provides a driver for the AMD
32 Athlon64/Opteron/Turion/Sempron GART based hardware IOMMU and a software
33 bounce buffer based IOMMU used on Intel systems and as fallback.
34 The code is only active when needed (enough memory and limited device)
35 unless CONFIG_IOMMU_DEBUG or iommu=force is specified too.
36
37 CONFIG_CALGARY_IOMMU=y
38 Support for hardware IOMMUs in IBM's xSeries x366 and x460 systems.
39 Needed to run systems with more than 3GB of memory properly with 32-bit
40 PCI devices that do not support DAC (Double Address Cycle). Calgary also
41 supports bus level isolation, where all DMAs pass through the IOMMU....
42
43 CONFIG_AMD_IOMMU=y
44 With this option you can enable support for AMD IOMMU hardware in your
45 system. An IOMMU is a hardware component which provides remapping of DMA
46 memory accesses from devices. With an AMD IOMMU you can isolate the the
47 DMA memory of different devices and protect the system from misbehaving
48 device drivers or hardware. You can find out if your system has an AMD
49 IOMMU if you look into your BIOS for an option to enable it or if you
50 have an IVRS ACPI table.
51
52 По моему, данные опции выглядят довольно так странно на фоне опции
53 CONFIG_MCORE2=Y (Processor family -> Core 2/newer Xeon)
54
55 > Привет, создавал тред здесь http://www.gentoo.ru/node/21974, но не помогло.
56 > Проблема в следующем - никак не могу собрать ядро (система amd64,
57 > nomultilib) так чтобы появились параметры shmmax, shmall и т.д.,
58 > необходимые для работы postgresql. Так и не нашел четкого объяснения
59 > что необходимо для этого сделать, советуют IOMMU и т..д., при
60 > включении которых не стартует udev. Помогите пожалуйста, может у кого
61 > есть конфиг ядра с сервера, работающего с postgresql.
62
63
64 --
65 Vladimir Solomatin (slash@×××××.ru)
66 Phone: + 7 (4732) 711711
67 Relex Inc, Voronezh.

Replies

Subject Author
Re: [gentoo-user-ru] gentoo, 1c, postgres, shm* "Кучма Кирилл" <mgn_2k@××××.ru>
Re: [gentoo-user-ru] gentoo, 1c, postgres, shm* "Кучма Кирилл" <mgn_2k@××××.ru>