On Tue, 8 Apr 2008, Pekka Enberg wrote:Actually, I don't think this is SLAB-specific, since there are potentially the same issues for pages. I suspect the right thing to do is not to mark them for "IO", but mark them for "short-lived", and allow short-lived allocations that don't have extended lifetimes to succeed even when a "real" allocation wouldn't. When we are under memory pressure, a normal allocation generally needs to clear up enough memory from elsewhere to succeed. But a short-lived allocation without any long-term lifetimes would be known to release its memory back to the pool, so it can be allowed to go ahead when a normal memory allocation would not. Examples of short-lived allocations: - IO requests - temporary network packets that don't get queued up (eg "ACK" packet) as opposed to those that do get queued (incoming _or_ outgoing queues) - things like the temporary buffers for "getname()/putname()" etc. That said, even a lot of temporary allocations can at times have issues. If your IO layer is dead, your IO request queues that _should_ have been very temporary may end up staying around for a long time. But I do think that it makes sense to prioritize allocations that are known to be short- lived. (It might also allows us to allocate them from different pools and just generally have other heuristics for cache behaviour - short-lived allocations simply have different behaviour) Linus --
| Linus Torvalds | Linux 2.6.27 |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Tejun Heo | [PATCHSET] FUSE: extend FUSE to support more operations |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Ken Pratt | pack operation is thrashing my server |
| Jakub Narebski | Re: VCS comparison table |
| H. Peter Anvin | Re: git versus CVS (versus bk) |
| Marco Costalba | [PATCH 11/11] Convert sha1_file.c to use decompress helpers |
| Richard Stallman | Real men don't attack straw men |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Brian A. Seklecki | Re: GRE over IPsec |
| sonjaya | openvpn on openbsd 4.1 |
| Hugh Dickins | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Gilles Chanteperdrix | [PATCH] cs89x0: add support for i.MX31ADS ARM board |
| Denys Fedoryshchenko | thousands of classes, e1000 TX unit hang |
| Francois Romieu | Re: 8169 Intermittent ifup Failure Issue With RTL8102E Chipset in Intel's New D945... |
| Treason Uncloaked | 10 minutes ago | Linux kernel |
| Shared swap partition | 11 hours ago | Linux general |
| high memory | 2 days ago | Linux kernel |
| semaphore access speed | 2 days ago | Applications and Utilities |
| the kernel how to power off the machine | 2 days ago | Linux kernel |
| Easter Eggs in windows XP | 2 days ago | Windows |
| Root password | 2 days ago | Linux general |
| Where/when DNOTIFY is used? | 2 days ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 2 days ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 2 days ago | Linux kernel |
