* Re: RFC: Remove swap file support [not found] <3B472C06.78A9530C@mandrakesoft.com> @ 2001-07-14 6:07 ` Eric W. Biederman 2001-07-14 15:25 ` Chris Wedgwood 0 siblings, 1 reply; 5+ messages in thread From: Eric W. Biederman @ 2001-07-14 6:07 UTC (permalink / raw) To: Jeff Garzik; +Cc: Linux Kernel Mailing List, viro, linux-mm Jeff Garzik <jgarzik@mandrakesoft.com> writes: > Since you can make any file into a block device using loop, > is there any value to supporting swap files in 2.5? > > swap files seem like a special case that is no longer necessary... Yes, and no. I'd say what we need to do is update rw_swap_page to use the address space functions directly. With block devices and files going through the page cache in 2.5 that should remove any special cases cleanly. In 2.4 the swap code really hasn't been updated, the old code has only been patched enough to work on 2.4. This adds layers of work that we really don't need to be doing. Removing the extra redirection has the potential to give a small performance boost to swapping. The case to watch out for are deadlocks doing things like using swapfiles on an NFS mount. As you point out we can already do this with the loop back devices so it isn't really a special case. The only new case I can see working are swapfiles with holes in them, or swapfiles that do automatic compression. I doubt those cases are significant improvements but it looks like they will fall out naturally. Eric -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Remove swap file support 2001-07-14 6:07 ` RFC: Remove swap file support Eric W. Biederman @ 2001-07-14 15:25 ` Chris Wedgwood 2001-07-14 17:35 ` Eric W. Biederman 0 siblings, 1 reply; 5+ messages in thread From: Chris Wedgwood @ 2001-07-14 15:25 UTC (permalink / raw) To: Eric W. Biederman; +Cc: Jeff Garzik, Linux Kernel Mailing List, viro, linux-mm On Sat, Jul 14, 2001 at 12:07:38AM -0600, Eric W. Biederman wrote: Yes, and no. I'd say what we need to do is update rw_swap_page to use the address space functions directly. With block devices and files going through the page cache in 2.5 that should remove any special cases cleanly. Will block devices go through the page cache in 2.5.x? I had hoped they would, that any block devices would just be page-cache views of underlying character devices, thus allowing us to remove the buffer-cache and the /dev/raw stuff. --cw -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Remove swap file support 2001-07-14 15:25 ` Chris Wedgwood @ 2001-07-14 17:35 ` Eric W. Biederman 2001-07-15 3:42 ` Chris Wedgwood 2001-07-17 11:59 ` Chris Wedgwood 0 siblings, 2 replies; 5+ messages in thread From: Eric W. Biederman @ 2001-07-14 17:35 UTC (permalink / raw) To: Chris Wedgwood; +Cc: Jeff Garzik, Linux Kernel Mailing List, viro, linux-mm Chris Wedgwood <cw@f00f.org> writes: > On Sat, Jul 14, 2001 at 12:07:38AM -0600, Eric W. Biederman wrote: > > Yes, and no. I'd say what we need to do is update rw_swap_page to > use the address space functions directly. With block devices and > files going through the page cache in 2.5 that should remove any > special cases cleanly. > > Will block devices go through the page cache in 2.5.x? > > I had hoped they would, that any block devices would just be > page-cache views of underlying character devices, thus allowing us to > remove the buffer-cache and the /dev/raw stuff. <orcale> Block devices will go through the page cache in 2.5. It will take a while for the buffer cache to go away completely, but it is there for the code paths that haven't been updated. Buffer heads will stay. The /dev/raw stuff is for those users that don't want to the kernel to cache their data and will continue to exist in some form. </oracle> I can't see how any device that doesn't support read or writing just a byte can be a character device. Eric -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Remove swap file support 2001-07-14 17:35 ` Eric W. Biederman @ 2001-07-15 3:42 ` Chris Wedgwood 2001-07-17 11:59 ` Chris Wedgwood 1 sibling, 0 replies; 5+ messages in thread From: Chris Wedgwood @ 2001-07-15 3:42 UTC (permalink / raw) To: Eric W. Biederman; +Cc: Jeff Garzik, Linux Kernel Mailing List, viro, linux-mm On Sat, Jul 14, 2001 at 11:35:52AM -0600, Eric W. Biederman wrote: I can't see how any device that doesn't support read or writing just a byte can be a character device. For requests smaller than the natural block size, you buffer and throw away... this will surely suck for writing do a hd byte-by-byte though :) --cw -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFC: Remove swap file support 2001-07-14 17:35 ` Eric W. Biederman 2001-07-15 3:42 ` Chris Wedgwood @ 2001-07-17 11:59 ` Chris Wedgwood 1 sibling, 0 replies; 5+ messages in thread From: Chris Wedgwood @ 2001-07-17 11:59 UTC (permalink / raw) To: Eric W. Biederman; +Cc: Jeff Garzik, Linux Kernel Mailing List, viro, linux-mm On Sat, Jul 14, 2001 at 11:35:52AM -0600, Eric W. Biederman wrote: I can't see how any device that doesn't support read or writing just a byte can be a character device. Why not... -EINVAL if the read alignment or size is improper... --cw -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-07-17 11:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <3B472C06.78A9530C@mandrakesoft.com>
2001-07-14 6:07 ` RFC: Remove swap file support Eric W. Biederman
2001-07-14 15:25 ` Chris Wedgwood
2001-07-14 17:35 ` Eric W. Biederman
2001-07-15 3:42 ` Chris Wedgwood
2001-07-17 11:59 ` Chris Wedgwood
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox