Skip to contentSkip to conversation

3.5G user space speed

DISCUSSION Peter Zaitsev 3 participants 6 messages Jan 15, 2002

lore
Share & tools
lore
#0 lore raw

Hello Linux,

2.4.xaa Series as well as SuSE kernels have 3.5G userspace option, which seems to be quite useful, therefore I see it's not included is stock kernel for some reasons. Also I've heard this configuration may have some performance problems.

Can anyone comment on this topic ?

I need large amount of address space for my application but I also need to get as much I/O performance as it's possible, so I can switch to 3.0/1.0 memory distribution if it will benefit here.

Signature · 2 lines
Best regards,
 Peter                          mailto:[email protected]
#1 lore raw
Quoted 8 lines · Peter Zaitsev

Hello Linux,

2.4.xaa Series as well as SuSE kernels have 3.5G userspace option, which seems to be quite useful, therefore I see it's not included is stock kernel for some reasons. Also I've heard this configuration may have some performance problems.

Quoted 5 lines

Can anyone comment on this topic ?

I need large amount of address space for my application but I also need to get as much I/O performance as it's possible, so I can switch to 3.0/1.0 memory distribution if it will benefit here.

You can't have it both ways with the x86 (speed vs. large userspace). Kernel 2.5 may help a bit here because changes were made to allow DMA from all memory (subject to card limitations), lessening the burden for direct-mapped memory. Otherwise you'll need to move to a 64-bit arch.

--

Brian Gerst

#2 lore raw

Hello Brian,

Wednesday, January 16, 2002, 12:05:39 AM, you wrote:

Well. May be you can tell about the numbers a bit ? I can chose 3.0G for user instead of 3.5G for user with not really huge loss, but I'd like to know how much it will increase speed and in which cases, also about standard 2/2 mode.

Quoted 11 lines
Quoted 11 lines

2.4.xaa Series as well as SuSE kernels have 3.5G userspace option, which seems to be quite useful, therefore I see it's not included is stock kernel for some reasons. Also I've heard this configuration may have some performance problems.

Can anyone comment on this topic ?

I need large amount of address space for my application but I also need to get as much I/O performance as it's possible, so I can switch to 3.0/1.0 memory distribution if it will benefit here.

BG> You can't have it both ways with the x86 (speed vs. large userspace). BG> Kernel 2.5 may help a bit here because changes were made to allow DMA BG> from all memory (subject to card limitations), lessening the burden for BG> direct-mapped memory. Otherwise you'll need to move to a 64-bit arch.

Signature · 2 lines
Best regards,
 Peter                            mailto:[email protected]
#3 lore raw
In reply to Peter Zaitsev
Quoted 10 lines · Peter Zaitsev

Hello Brian,

Wednesday, January 16, 2002, 12:05:39 AM, you wrote:

BG> You can't have it both ways with the x86 (speed vs. large userspace). BG> Kernel 2.5 may help a bit here because changes were made to allow DMA BG> from all memory (subject to card limitations), lessening the burden for BG> direct-mapped memory. Otherwise you'll need to move to a 64-bit arch.

Quoted 4 lines

Well. May be you can tell about the numbers a bit ? I can chose 3.0G for user instead of 3.5G for user with not really huge loss, but I'd like to know how much it will increase speed and in which cases, also about standard 2/2 mode.

I don't have quantifiable numbers available, but the speed issue will be a result of the kernel running out of direct-mapped memory and having to start swapping even though there is free memory in the system (in the highmem zone). The best thing you can do is try both and find what works best for you.

--

Brian Gerst

#4 lore raw

Hello Brian,

Quoted 5 lines · you
Quoted 5 lines

Well. May be you can tell about the numbers a bit ? I can chose 3.0G for user instead of 3.5G for user with not really huge loss, but I'd like to know how much it will increase speed and in which cases, also about standard 2/2 mode.

BG> I don't have quantifiable numbers available, but the speed issue will be BG> a result of the kernel running out of direct-mapped memory and having to BG> start swapping even though there is free memory in the system (in the BG> highmem zone). The best thing you can do is try both and find what BG> works best for you.

So how this should appear ? Like real swapping or like increased system CPU usage because of moving pages to/from zone.

Signature · 2 lines
Best regards,
 Peter                            mailto:[email protected]
#5 lore raw
In reply to Peter Zaitsev
Followup to:  <[email protected]>
By author:    Peter Zaitsev <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 6 lines

2.4.xaa Series as well as SuSE kernels have 3.5G userspace option, which seems to be quite useful, therefore I see it's not included is stock kernel for some reasons. Also I've heard this configuration may have some performance problems.

Be careful... 3.5G breaks the initrd protocol (assuming you have enough RAM for it to matter anyway), unless you have a 2.03 boot protocol capable (a) kernel and (b) bootloader. At this point I don't know of any bootloader other than SYSLINUX 1.65 or later that is 2.03 compatible.

-hpa

Signature · 3 lines
<[email protected]> at work, <[email protected]> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<[email protected]>