[Patch] tmpfs fixes against 2.4.6-pre(2)

2001-07-03 Thread Christoph Rohland
Hi Linus, This is the second part of my patches. Writing out of a mapping of a tmpfs file into the same file can deadlock. This is running in the -ac series since some while. Please apply Christoph diff -uNr 6-pre8-fix1/include/linux/shmem_fs.h

[Patch] tmpfs fixes against 2.4.6-pre

2001-07-03 Thread Christoph Rohland
-pre8/mm/shmem.c 6-pre8-fix1/mm/shmem.c --- 6-pre8/mm/shmem.c Tue Jun 12 09:49:28 2001 +++ 6-pre8-fix1/mm/shmem.c Tue Jul 3 08:55:20 2001 @@ -3,7 +3,8 @@ * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. - * 2000 Christoph Rohland

[Patch] tmpfs fixes against 2.4.6-pre

2001-07-03 Thread Christoph Rohland
-pre8/mm/shmem.c 6-pre8-fix1/mm/shmem.c --- 6-pre8/mm/shmem.c Tue Jun 12 09:49:28 2001 +++ 6-pre8-fix1/mm/shmem.c Tue Jul 3 08:55:20 2001 @@ -3,7 +3,8 @@ * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. - * 2000 Christoph Rohland

[Patch] tmpfs fixes against 2.4.6-pre(2)

2001-07-03 Thread Christoph Rohland
Hi Linus, This is the second part of my patches. Writing out of a mapping of a tmpfs file into the same file can deadlock. This is running in the -ac series since some while. Please apply Christoph diff -uNr 6-pre8-fix1/include/linux/shmem_fs.h

[Patch] tmpfs/ramfs accounting

2001-07-02 Thread Christoph Rohland
Hi Alan, here is the patch you backed out for -ac22. I slightly changed the approach: I do not rely on removepage to calculate the fs size any more since the special-casing was ugly and PG_marker was dropped. But I use removepage for the shmem_nrpages calculation. Please apply

[Patch] tmpfs/ramfs accounting

2001-07-02 Thread Christoph Rohland
Hi Alan, here is the patch you backed out for -ac22. I slightly changed the approach: I do not rely on removepage to calculate the fs size any more since the special-casing was ugly and PG_marker was dropped. But I use removepage for the shmem_nrpages calculation. Please apply

Re: Shared memory quantity not being reflected by /proc/meminfo

2001-06-25 Thread Christoph Rohland
Hi Allan, On Sun, 24 Jun 2001, Allan Duncan wrote: > OK, it's fine by me if the "shared" under 2.2.x is not the same, > however in that case the field should not appear at all in meminfo, > rather than the current zero value, which leads lesser kernel > hackers like me up the garden path. This

Re: Shared memory quantity not being reflected by /proc/meminfo

2001-06-25 Thread Christoph Rohland
Hi Allan, On Sun, 24 Jun 2001, Allan Duncan wrote: OK, it's fine by me if the shared under 2.2.x is not the same, however in that case the field should not appear at all in meminfo, rather than the current zero value, which leads lesser kernel hackers like me up the garden path. This would

Re: Shared memory quantity not being reflected by /proc/meminfo

2001-06-24 Thread Christoph Rohland
Hi Albert, On Sat, 23 Jun 2001, Albert D. Cahalan wrote: > You misunderstood what 2.2.xx kernels were reporting. > The "shared" memory in /proc/meminfo refers to something > completely unrelated to SysV shared memory. This is no > longer calculated because the computation was too costly. But

Re: Shared memory quantity not being reflected by /proc/meminfo

2001-06-24 Thread Christoph Rohland
Hi Albert, On Sat, 23 Jun 2001, Albert D. Cahalan wrote: You misunderstood what 2.2.xx kernels were reporting. The shared memory in /proc/meminfo refers to something completely unrelated to SysV shared memory. This is no longer calculated because the computation was too costly. But the load

[Patch] tmpfs fixes against 2.4.6-pre

2001-06-21 Thread Christoph Rohland
-fix/mm/shmem.c Thu Jun 21 15:52:26 2001 @@ -3,7 +3,8 @@ * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. - * 2000 Christoph Rohland + * 2000-2001 Christoph Rohland + * 2000-2001 SAP AG * * This file is released under

Re: Linux 2.4.5-ac16

2001-06-21 Thread Christoph Rohland
Hi Alan, On Tue, 19 Jun 2001, Alan Cox wrote: > 2.4.5-ac16 > o Drop the shmem/removepage changes to see if they(me) > are cuaisng the instabilities in ac15 Any conclusions on that? Greetings Christoph - To unsubscribe from this list: send the line "unsubscribe

[Patch] tmpfs fixes against 2.4.6-pre

2001-06-21 Thread Christoph Rohland
-fix/mm/shmem.c Thu Jun 21 15:52:26 2001 @@ -3,7 +3,8 @@ * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. - * 2000 Christoph Rohland + * 2000-2001 Christoph Rohland + * 2000-2001 SAP AG * * This file is released under

Re: Linux 2.4.5-ac14

2001-06-15 Thread Christoph Rohland
Hi Dieter, On Fri, 15 Jun 2001, Dieter Nützel wrote: > I see 4.29 GB under shm with your latest try. > something wrong? Yes, this is nasty. The appended patch fixes that. (I am not really happy to need the PG_marker flag for writepage.) The patch also fixes two other problems: -

Re: Linux 2.4.5-ac14

2001-06-15 Thread Christoph Rohland
Hi Dieter, On Fri, 15 Jun 2001, Dieter Nützel wrote: I see 4.29 GB under shm with your latest try. something wrong? Yes, this is nasty. The appended patch fixes that. (I am not really happy to need the PG_marker flag for writepage.) The patch also fixes two other problems: - shmem_file_setup

[Patch] 2.4.5-ac13 ramfs and tmpfs accounting

2001-06-13 Thread Christoph Rohland
Hi Alan, ramfs accounting does not get notified when a clean page gets dropped from the inode. Also tmpfs should use the new function to do accurate accounting. Else the cached field in -ac will get spurious negative values. The following patch fixes both. Greetings Christoph

Re: DoS using tmpfs

2001-06-13 Thread Christoph Rohland
Hi Pavel, On Fri, 8 Jun 2001, Pavel Roskin wrote: > Hello! > > It appears that a system with tmpfs mounted with the default (!!!) > parameters can be used by ordinary users to make the system > non-functional. ... > 1) tmpfs, as opposed to ramfs doesn't limit the usage by >default. It's

Re: DoS using tmpfs

2001-06-13 Thread Christoph Rohland
Hi Pavel, On Fri, 8 Jun 2001, Pavel Roskin wrote: Hello! It appears that a system with tmpfs mounted with the default (!!!) parameters can be used by ordinary users to make the system non-functional. ... 1) tmpfs, as opposed to ramfs doesn't limit the usage by default. It's not a

[Patch] 2.4.5-ac13 ramfs and tmpfs accounting

2001-06-13 Thread Christoph Rohland
Hi Alan, ramfs accounting does not get notified when a clean page gets dropped from the inode. Also tmpfs should use the new function to do accurate accounting. Else the cached field in -ac will get spurious negative values. The following patch fixes both. Greetings Christoph

Re: unused shared memory is written into core dump - bug or feature?

2001-06-12 Thread Christoph Rohland
Hi Peter, On Tue, 12 Jun 2001, Peter Niemayer wrote: > I just noticed that when I attach some SYSV shared memory segments > to my process and then that process dies from a SIGSEGV that _all_ > the shared memory is dumped into the core file, even if it was never > used and therefore didn't show

Re: unused shared memory is written into core dump - bug or feature?

2001-06-12 Thread Christoph Rohland
Hi Peter, On Tue, 12 Jun 2001, Peter Niemayer wrote: I just noticed that when I attach some SYSV shared memory segments to my process and then that process dies from a SIGSEGV that _all_ the shared memory is dumped into the core file, even if it was never used and therefore didn't show up in

Re: tmpfs + sendfile bug ?

2001-05-22 Thread Christoph Rohland
Hi Linus, On Mon, 21 May 2001, Linus Torvalds wrote: > In article <[EMAIL PROTECTED]>, Christoph Rohland > <[EMAIL PROTECTED]> wrote: >> >>tmpfs does not provide the necessary functions for sendfile and lo: >>readpage, prepare_write and commitwrite. >&g

Re: tmpfs + sendfile bug ?

2001-05-22 Thread Christoph Rohland
Hi Linus, On Mon, 21 May 2001, Linus Torvalds wrote: In article [EMAIL PROTECTED], Christoph Rohland [EMAIL PROTECTED] wrote: tmpfs does not provide the necessary functions for sendfile and lo: readpage, prepare_write and commitwrite. And I do not see a way how to provide readpage in tmpfs

Re: tmpfs + sendfile bug ?

2001-05-21 Thread Christoph Rohland
Hi Pierre, On Mon, 21 May 2001, Pierre Etchemaite wrote: > I just found a problem GETting a file stored in tmpfs using proftpd; > I always get a "426 Transfer aborted. Data connection closed." > > That could be a bug with tmpfs and sendfile in 2.4.5-pre4 : > > [...] > read(8,

Re: tmpfs + sendfile bug ?

2001-05-21 Thread Christoph Rohland
Hi Pierre, On Mon, 21 May 2001, Pierre Etchemaite wrote: I just found a problem GETting a file stored in tmpfs using proftpd; I always get a 426 Transfer aborted. Data connection closed. That could be a bug with tmpfs and sendfile in 2.4.5-pre4 : [...] read(8,

[Patch] tmpfs accounting cleanup for -ac series

2001-05-17 Thread Christoph Rohland
Hi Alan, While looking at the -ac version of ramfs I noticed that there is a new address operation introduced which I can use to cleanup shmem. This patch throws away some magic recalculation and makes the accounting of shmem accurate. It also encapsulates all accesses to the superblock_info

[Patch] ramfs accounting in -ac broken

2001-05-17 Thread Christoph Rohland
Hi Alan, The ramfs accounting is broken for shared mmaps. It simply does not recognize the pages allocated by writing into a shared mapping but takes them into account when freed. The attached patch should fix that. Greetings Christoph --- 4-ac9/fs/ramfs/inode.c Thu May

Re: [PATCH] rootfs (part 1)

2001-05-17 Thread Christoph Rohland
Hi Alan, On Thu, 17 May 2001, Alan Cox wrote: > I think you have a major tool problem. > > bash-2.04$ size mm/shmem.o >text data bss dec hex filename >7422 572 079941f3a mm/shmem.o > bash-2.04$ size fs/ramfs/ramfs.o >text data

Re: [PATCH] rootfs (part 1)

2001-05-17 Thread Christoph Rohland
Hi Alan, On Thu, 17 May 2001, Alan Cox wrote: I think you have a major tool problem. bash-2.04$ size mm/shmem.o text data bss dec hex filename 7422 572 079941f3a mm/shmem.o bash-2.04$ size fs/ramfs/ramfs.o text data bss

[Patch] ramfs accounting in -ac broken

2001-05-17 Thread Christoph Rohland
Hi Alan, The ramfs accounting is broken for shared mmaps. It simply does not recognize the pages allocated by writing into a shared mapping but takes them into account when freed. The attached patch should fix that. Greetings Christoph --- 4-ac9/fs/ramfs/inode.c Thu May

[Patch] tmpfs accounting cleanup for -ac series

2001-05-17 Thread Christoph Rohland
Hi Alan, While looking at the -ac version of ramfs I noticed that there is a new address operation introduced which I can use to cleanup shmem. This patch throws away some magic recalculation and makes the accounting of shmem accurate. It also encapsulates all accesses to the superblock_info

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Alexander, On Wed, 16 May 2001, Alexander Viro wrote: > Because what I need is an absolute minimum. Heck, I don't even use > regular files (in the full variant of patch, that is). They might > become useful, but I can live with mkdir() and mknod(). So what about adding shmem_mknod and

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Linus, On Wed, 16 May 2001, Linus Torvalds wrote: > > On 16 May 2001, Christoph Rohland wrote: >> >> cr:/speicher/src/u4ac9 $ ls -l mm/shmem.o* >> -rw-r--r--1 cr users 154652 Mai 16 19:27 mm/shmem.o-tmpfs >> -rw-r--r--1 cr users

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Linus, On Wed, 16 May 2001, Linus Torvalds wrote: > Looks ok, but it also feels like 2.5.x stuff to me. > > Also, there's the question of whether to make ramfs just built-in, > or make _tmpfs_ built in - ramfs is certainly simpler, but tmpfs > does the same things and you need that one for

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Al, On Wed, 16 May 2001, Alexander Viro wrote: > One point that might be better done differently - since we > need ramfs for boot I've just made fs/Config.in declare CONFIG_RAMFS > as define_bool CONFIG_RAMFS y. If ramfs grows (e.g. gets resource > limits patches from -ac) we might be

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Al, On Wed, 16 May 2001, Alexander Viro wrote: One point that might be better done differently - since we need ramfs for boot I've just made fs/Config.in declare CONFIG_RAMFS as define_bool CONFIG_RAMFS y. If ramfs grows (e.g. gets resource limits patches from -ac) we might be

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Linus, On Wed, 16 May 2001, Linus Torvalds wrote: Looks ok, but it also feels like 2.5.x stuff to me. Also, there's the question of whether to make ramfs just built-in, or make _tmpfs_ built in - ramfs is certainly simpler, but tmpfs does the same things and you need that one for

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Linus, On Wed, 16 May 2001, Linus Torvalds wrote: On 16 May 2001, Christoph Rohland wrote: cr:/speicher/src/u4ac9 $ ls -l mm/shmem.o* -rw-r--r--1 cr users 154652 Mai 16 19:27 mm/shmem.o-tmpfs -rw-r--r--1 cr users 180764 Mai 16 19:24 mm/shmem.o+tmpfs cr

Re: [PATCH] rootfs (part 1)

2001-05-16 Thread Christoph Rohland
Hi Alexander, On Wed, 16 May 2001, Alexander Viro wrote: Because what I need is an absolute minimum. Heck, I don't even use regular files (in the full variant of patch, that is). They might become useful, but I can live with mkdir() and mknod(). So what about adding shmem_mknod and

[Patch] allow tmpfs bigger than 1GB on s390x

2001-05-15 Thread Christoph Rohland
Hi Martin, Here is the patch which implements triple indirect blocks in tmpfs. For the rest of the word: This is needed since s390x is a 64 Bit platform with pagesize of 4k :-( It is on top of my other tmpfs fixes which you can find at ftp://ftp.sap.com/pub/linuxlab/people/cr Greetings

Assorted tmpfs fixes

2001-05-15 Thread Christoph Rohland
ry than we have. */ if (sysctl_overcommit_memory) return 1; free = atomic_read(_pages); - free += atomic_read(_cache_size); + free += cached; free += nr_free_pages(); free += nr_swap_pages; diff -uNr 2.4.4-mSsu/mm/shmem.c 2.4.4

Assorted tmpfs fixes

2001-05-15 Thread Christoph Rohland
Fri May 4 21:37:34 2001 +++ 2.4.4-mSsua/mm/shmem.c Mon May 7 11:13:27 2001 @@ -3,7 +3,8 @@ * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. - * 2000 Christoph Rohland + * 2000-2001 Christoph Rohland + * 2000-2001 SAP AG

[Patch] allow tmpfs bigger than 1GB on s390x

2001-05-15 Thread Christoph Rohland
Hi Martin, Here is the patch which implements triple indirect blocks in tmpfs. For the rest of the word: This is needed since s390x is a 64 Bit platform with pagesize of 4k :-( It is on top of my other tmpfs fixes which you can find at ftp://ftp.sap.com/pub/linuxlab/people/cr Greetings

Re: 2.4.4 kernel freeze for unknown reason

2001-05-13 Thread Christoph Rohland
Hi Mike, On Sat, 12 May 2001, Mike Galbraith wrote: > Why do I not see this behavior with a heavy swap throughput test > load? It seems decidedly odd to me that swapspace should remain > allocated on other folks lightly loaded boxen given that my heavily > loaded box does release swapspace

Re: 2.4.4 kernel freeze for unknown reason

2001-05-13 Thread Christoph Rohland
Hi Mike, On Sat, 12 May 2001, Mike Galbraith wrote: Why do I not see this behavior with a heavy swap throughput test load? It seems decidedly odd to me that swapspace should remain allocated on other folks lightly loaded boxen given that my heavily loaded box does release swapspace quite

[Patch] Do not account shmem pages to the page cache

2001-05-07 Thread Christoph Rohland
4.4-mSsu/mm/shmem.c Fri May 4 21:37:34 2001 +++ 2.4.4-mSsua/mm/shmem.c Mon May 7 11:13:27 2001 @@ -3,7 +3,8 @@ * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. - * 2000 Christoph Rohland + * 2000-2001 Christoph Rohland + *

[Patch] Do not account shmem pages to the page cache

2001-05-07 Thread Christoph Rohland
/shmem.c --- 2.4.4-mSsu/mm/shmem.c Fri May 4 21:37:34 2001 +++ 2.4.4-mSsua/mm/shmem.c Mon May 7 11:13:27 2001 @@ -3,7 +3,8 @@ * * Copyright (C) 2000 Linus Torvalds. * 2000 Transmeta Corp. - * 2000 Christoph Rohland + * 2000-2001 Christoph Rohland

[Resend] Collection of tmpfs patches

2001-05-06 Thread Christoph Rohland
Hi, There is some confusion about my latest tmpfs fixes. There were three patches which are cummulative against 2.4.4: 1) deadlock fix for write out of mmap regions. (AFAIK this is integrated in the -ac kernels) 2) encapsulate access to shmem_inode_info 3) Do inline symlinks I attach all

[Resend] Collection of tmpfs patches

2001-05-06 Thread Christoph Rohland
Hi, There is some confusion about my latest tmpfs fixes. There were three patches which are cummulative against 2.4.4: 1) deadlock fix for write out of mmap regions. (AFAIK this is integrated in the -ac kernels) 2) encapsulate access to shmem_inode_info 3) Do inline symlinks I attach all

[Patch] inline symlinks for tmpfs

2001-05-05 Thread Christoph Rohland
Hi David, On Tue, 24 Apr 2001, David L. Parsley wrote: >> OK I will do that for tmpfs soon. And I will do the symlink >> inlining with that patch. OK, here comes the patch for the symlink inlining. It is on top of my previous patch to encapsulate access to the private inode info. Greetings

[Patch] inline symlinks for tmpfs

2001-05-05 Thread Christoph Rohland
Hi David, On Tue, 24 Apr 2001, David L. Parsley wrote: OK I will do that for tmpfs soon. And I will do the symlink inlining with that patch. OK, here comes the patch for the symlink inlining. It is on top of my previous patch to encapsulate access to the private inode info. Greetings

[Patch] encapsulate shmem access to shmem_inode_info

2001-05-04 Thread Christoph Rohland
Hi, On 24 Apr 2001, Christoph Rohland wrote: > Hi Al, > > On Tue, 24 Apr 2001, Alexander Viro wrote: >> So yes, IMO having such patches available _is_ a good thing. And in >> 2.5 we definitely want them in the tree. If encapsulation part gets >> there during

Re: tmpfs doesn't update free memory stats?

2001-05-04 Thread Christoph Rohland
Hi Jacek, On Fri, 4 May 2001, Jacek Kopecky wrote: > I'm not in the list, please cc your replies to me. > After upgrading to 2.4.4 I started using tmpfs for /tmp and I > noticed a strange behavior: > > dd if=/dev/zero of=blah bs=1024 count=102400 > # increased my used swap space by

Re: tmpfs doesn't update free memory stats?

2001-05-04 Thread Christoph Rohland
Hi Jacek, On Fri, 4 May 2001, Jacek Kopecky wrote: I'm not in the list, please cc your replies to me. After upgrading to 2.4.4 I started using tmpfs for /tmp and I noticed a strange behavior: dd if=/dev/zero of=blah bs=1024 count=102400 # increased my used swap space by approx.

[Patch] encapsulate shmem access to shmem_inode_info

2001-05-04 Thread Christoph Rohland
Hi, On 24 Apr 2001, Christoph Rohland wrote: Hi Al, On Tue, 24 Apr 2001, Alexander Viro wrote: So yes, IMO having such patches available _is_ a good thing. And in 2.5 we definitely want them in the tree. If encapsulation part gets there during 2.4 and separate allocation is available

Re: [Patch] deadlock on write in tmpfs

2001-05-02 Thread Christoph Rohland
Hi Stephen, On Tue, 1 May 2001, Stephen C. Tweedie wrote: > If the locking is for a completely different reason, then a > different semaphore is quite appropriate. In this case you're > trying to lock the shm internal info structures, which is quite > different from the sort of inode locking

Re: [Patch] deadlock on write in tmpfs

2001-05-02 Thread Christoph Rohland
Hi Stephen, On Tue, 1 May 2001, Stephen C. Tweedie wrote: If the locking is for a completely different reason, then a different semaphore is quite appropriate. In this case you're trying to lock the shm internal info structures, which is quite different from the sort of inode locking which

[Patch] deadlock on write in tmpfs

2001-05-01 Thread Christoph Rohland
Hi Linus and Stephen, tmpfs deadlocks when writing into a file from a mapping of the same file. The problem is the following: - shmem_file_write may call shmem_no_page and calls shmem_getpage_locked later, - shmem_no_page calls shmem_getpage_locked - shmem_getpage_locked may call

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Christoph Rohland
Hi Alan, On Mon, 30 Apr 2001, Alan Cox wrote: >> paging in just released 2.4.4, but in previuos kernel, a page that >> was paged-out, reserves its place in swap even if it is paged-in >> again, so once you have paged-out all your ram at least once, you >> can't get any more memory, even if swap

Re: 2.4 and 2GB swap partition limit

2001-05-01 Thread Christoph Rohland
Hi Alan, On Mon, 30 Apr 2001, Alan Cox wrote: paging in just released 2.4.4, but in previuos kernel, a page that was paged-out, reserves its place in swap even if it is paged-in again, so once you have paged-out all your ram at least once, you can't get any more memory, even if swap is

[Patch] deadlock on write in tmpfs

2001-05-01 Thread Christoph Rohland
Hi Linus and Stephen, tmpfs deadlocks when writing into a file from a mapping of the same file. The problem is the following: - shmem_file_write may call shmem_no_page and calls shmem_getpage_locked later, - shmem_no_page calls shmem_getpage_locked - shmem_getpage_locked may call

Re: ramdisk/tmpfs/ramfs/memfs ?

2001-04-27 Thread Christoph Rohland
Hi Padraig, On Fri, 27 Apr 2001, Padraig Brady wrote: > I don't have swap so don't need tmpfs, but could probably > use it anyway without a backing store? Yes, it does not need backing store. > Anyway why was ramfs created if tmpfs existed, unless tmpfs requires > backing store? They both

Re: ramdisk/tmpfs/ramfs/memfs ?

2001-04-27 Thread Christoph Rohland
On Fri, 27 Apr 2001, [EMAIL PROTECTED] wrote: >> > tmpfs is basically ramfs with limits. >> > >> >> ... and swappable. >> >> -hpa > > Hmmm and what's shmfs? Precedessor of tmpfs? Yes. > I even cant remember which one I use for /tmp ;-) You can mount tmpfs also with type "shm" for

Re: ramdisk/tmpfs/ramfs/memfs ?

2001-04-27 Thread Christoph Rohland
Hi Padraig, On Thu, 26 Apr 2001, Padraig Brady wrote: > 2. Is tmpfs is basically swap and /tmp together in a ramdisk? >The advantage being you need to reserve less RAM for both >together than seperately? tmpfs is ramfs+swap+limits. It is not using ramdisks and is not related to them. >

Re: ramdisk/tmpfs/ramfs/memfs ?

2001-04-27 Thread Christoph Rohland
Hi Padraig, On Thu, 26 Apr 2001, Padraig Brady wrote: 2. Is tmpfs is basically swap and /tmp together in a ramdisk? The advantage being you need to reserve less RAM for both together than seperately? tmpfs is ramfs+swap+limits. It is not using ramdisks and is not related to them. 3.

Re: ramdisk/tmpfs/ramfs/memfs ?

2001-04-27 Thread Christoph Rohland
On Fri, 27 Apr 2001, [EMAIL PROTECTED] wrote: tmpfs is basically ramfs with limits. ... and swappable. -hpa Hmmm and what's shmfs? Precedessor of tmpfs? Yes. I even cant remember which one I use for /tmp ;-) You can mount tmpfs also with type shm for compatibility. Type shm will

Re: ramdisk/tmpfs/ramfs/memfs ?

2001-04-27 Thread Christoph Rohland
Hi Padraig, On Fri, 27 Apr 2001, Padraig Brady wrote: I don't have swap so don't need tmpfs, but could probably use it anyway without a backing store? Yes, it does not need backing store. Anyway why was ramfs created if tmpfs existed, unless tmpfs requires backing store? They both seem

Re: hundreds of mount --bind mountpoints?

2001-04-25 Thread Christoph Rohland
Hi Andreas, On Tue, 24 Apr 2001, Andreas Dilger wrote: > On the other hand, sockets and shmem are both relatively large... shmem is only large because the union is large. I introduced the direct swap array of size SHMEM_NR_DIRECT simply to take advantage of the union. We can decrease

Re: shm_open doesn't work (fix maybe).

2001-04-25 Thread Christoph Rohland
Hi, On Tue, 24 Apr 2001, Jakub Jelinek wrote: > On Tue, Apr 24, 2001 at 11:46:20AM -0500, Tom Brusehaver (N-Sysdyne > Corporation) wrote: >> >> I have been chasing all around trying to find out why >> shm_open always returns ENOSYS. It is implemented >> in glibc-2.2.2, and seems the 2.4.3

Re: shm_open doesn't work (fix maybe).

2001-04-25 Thread Christoph Rohland
Hi, On Tue, 24 Apr 2001, Jakub Jelinek wrote: On Tue, Apr 24, 2001 at 11:46:20AM -0500, Tom Brusehaver (N-Sysdyne Corporation) wrote: I have been chasing all around trying to find out why shm_open always returns ENOSYS. It is implemented in glibc-2.2.2, and seems the 2.4.3 kernel knows

Re: hundreds of mount --bind mountpoints?

2001-04-25 Thread Christoph Rohland
Hi Andreas, On Tue, 24 Apr 2001, Andreas Dilger wrote: On the other hand, sockets and shmem are both relatively large... shmem is only large because the union is large. I introduced the direct swap array of size SHMEM_NR_DIRECT simply to take advantage of the union. We can decrease

Re: hundreds of mount --bind mountpoints?

2001-04-24 Thread Christoph Rohland
Hi Al, On Tue, 24 Apr 2001, Alexander Viro wrote: > So yes, IMO having such patches available _is_ a good thing. And in > 2.5 we definitely want them in the tree. If encapsulation part gets > there during 2.4 and separate allocation is available for all of > them it will be easier to do without

Re: hundreds of mount --bind mountpoints?

2001-04-24 Thread Christoph Rohland
Hi Al, On Tue, 24 Apr 2001, Alexander Viro wrote: >> Half an hour? If it takes more than about 5 minutes for JFFS2 I'd >> be very surprised. > > What's stopping you? > You _are_ JFFS maintainer, aren't you? So is this the start to change all filesystems in 2.4? I am not sure we should do

Re: hundreds of mount --bind mountpoints?

2001-04-24 Thread Christoph Rohland
Hi Alexander, On Mon, 23 Apr 2001, Alexander Viro wrote: >> I like it. ext2fs does the same, so there should be no VFS >> hassles involved. Al? > > We should get ext2 and friends to move the sucker _out_ of struct > inode. As it is, sizeof(struct inode) is way too large. This is 2.5 > stuff,

Re: hundreds of mount --bind mountpoints?

2001-04-24 Thread Christoph Rohland
Hi Alexander, On Mon, 23 Apr 2001, Alexander Viro wrote: I like it. ext2fs does the same, so there should be no VFS hassles involved. Al? We should get ext2 and friends to move the sucker _out_ of struct inode. As it is, sizeof(struct inode) is way too large. This is 2.5 stuff, but it

Re: hundreds of mount --bind mountpoints?

2001-04-24 Thread Christoph Rohland
Hi Al, On Tue, 24 Apr 2001, Alexander Viro wrote: Half an hour? If it takes more than about 5 minutes for JFFS2 I'd be very surprised. tone polite What's stopping you? /tone You _are_ JFFS maintainer, aren't you? So is this the start to change all filesystems in 2.4? I am not sure we

Re: hundreds of mount --bind mountpoints?

2001-04-24 Thread Christoph Rohland
Hi Al, On Tue, 24 Apr 2001, Alexander Viro wrote: So yes, IMO having such patches available _is_ a good thing. And in 2.5 we definitely want them in the tree. If encapsulation part gets there during 2.4 and separate allocation is available for all of them it will be easier to do without PITA

Re: hundreds of mount --bind mountpoints?

2001-04-23 Thread Christoph Rohland
Hi Ingo, On Mon, 23 Apr 2001, Ingo Oeser wrote: > On Mon, Apr 23, 2001 at 01:43:27PM +0200, Christoph Rohland wrote: >> On Sun, 22 Apr 2001, David L. Parsley wrote: >> > attach packages inside it. Since symlinks in a tmpfs filesystem >> > cost 4k each (ouch!), I'm con

Re: hundreds of mount --bind mountpoints?

2001-04-23 Thread Christoph Rohland
Hi David, On Sun, 22 Apr 2001, David L. Parsley wrote: > I'm still working on a packaging system for diskless > (quasi-embedded) devices. The root filesystem is all tmpfs, and I > attach packages inside it. Since symlinks in a tmpfs filesystem > cost 4k each (ouch!), I'm considering using

Re: hundreds of mount --bind mountpoints?

2001-04-23 Thread Christoph Rohland
Hi David, On Sun, 22 Apr 2001, David L. Parsley wrote: I'm still working on a packaging system for diskless (quasi-embedded) devices. The root filesystem is all tmpfs, and I attach packages inside it. Since symlinks in a tmpfs filesystem cost 4k each (ouch!), I'm considering using mount

Re: hundreds of mount --bind mountpoints?

2001-04-23 Thread Christoph Rohland
Hi Ingo, On Mon, 23 Apr 2001, Ingo Oeser wrote: On Mon, Apr 23, 2001 at 01:43:27PM +0200, Christoph Rohland wrote: On Sun, 22 Apr 2001, David L. Parsley wrote: attach packages inside it. Since symlinks in a tmpfs filesystem cost 4k each (ouch!), I'm considering using mount --bind

Re: [NEED TESTERS] remove swapin_readahead Re: shmem_getpage_locked() / swapin_readahead() race in 2.4.4-pre3

2001-04-18 Thread Christoph Rohland
Hi Stephen, On Tue, 17 Apr 2001, Stephen C. Tweedie wrote: > I don't see the problem. shmem_getpage_locked appears to back off > correctly if it encounters a swap-cached page already existing if > swapin_readahead has installed the page first, at least with the > code in 2.4.3-ac5. But the

Re: [NEED TESTERS] remove swapin_readahead Re: shmem_getpage_locked() / swapin_readahead() race in 2.4.4-pre3

2001-04-18 Thread Christoph Rohland
Hi Stephen, On Tue, 17 Apr 2001, Stephen C. Tweedie wrote: I don't see the problem. shmem_getpage_locked appears to back off correctly if it encounters a swap-cached page already existing if swapin_readahead has installed the page first, at least with the code in 2.4.3-ac5. But the swap

Re: shmem_getpage_locked() / swapin_readahead() race in 2.4.4-pre3

2001-04-15 Thread Christoph Rohland
Hi, On Sat, 14 Apr 2001, Marcelo Tosatti wrote: > There is a nasty race between shmem_getpage_locked() and > swapin_readahead() with the new shmem code (introduced in 2.4.3-ac3 > and merged in the main tree in 2.4.4-pre3): > > shmem_getpage_locked() finds a page in the swapcache and moves it to

Re: shmem_getpage_locked() / swapin_readahead() race in 2.4.4-pre3

2001-04-15 Thread Christoph Rohland
Hi, On Sat, 14 Apr 2001, Marcelo Tosatti wrote: There is a nasty race between shmem_getpage_locked() and swapin_readahead() with the new shmem code (introduced in 2.4.3-ac3 and merged in the main tree in 2.4.4-pre3): shmem_getpage_locked() finds a page in the swapcache and moves it to the

Re: 2.4.3-ac2 -- How do I determine if shm is being used?

2001-04-08 Thread Christoph Rohland
Hi Miles, On Sat, 07 Apr 2001, Miles Lane wrote: > I have mounted: > > none on /var/shm type shm (rw) Not necessary any more. > tmpfs on /dev/shm type tmpfs (rw) Also not necessary, but recommended for POSIX shm. BTW it will not work with Linus' kernel. Type "shm" is supported by

Re: 2.4.3-ac2 -- How do I determine if shm is being used?

2001-04-08 Thread Christoph Rohland
Hi Miles, On Sat, 07 Apr 2001, Miles Lane wrote: I have mounted: none on /var/shm type shm (rw) Not necessary any more. tmpfs on /dev/shm type tmpfs (rw) Also not necessary, but recommended for POSIX shm. BTW it will not work with Linus' kernel. Type "shm" is supported by

Re: tmpfs in 2.4.3 and AC

2001-03-31 Thread Christoph Rohland
On Fri, 30 Mar 2001, [EMAIL PROTECTED] wrote: > tmpfs (or shmfs or whatever name you like) is still different in > official series (2.4.3) and in ac series. Its a kick in the ass for > multiboot, as offcial 2.4.3 does not recognise 'tmpfs' in fstab: > > shmfs /dev/shmtmpfs ... Use

Re: tmpfs in 2.4.3 and AC

2001-03-31 Thread Christoph Rohland
On Fri, 30 Mar 2001, [EMAIL PROTECTED] wrote: tmpfs (or shmfs or whatever name you like) is still different in official series (2.4.3) and in ac series. Its a kick in the ass for multiboot, as offcial 2.4.3 does not recognise 'tmpfs' in fstab: shmfs /dev/shmtmpfs ... Use type

Re: tmpfs: a way to get your system down

2001-03-27 Thread Christoph Rohland
Hi Alex, On Sat, 24 Mar 2001, Alex Riesen wrote: > just hit by tmpfs on 2.4.2-ac20 > > mount -t tmpfs mnt > dd if=/dev/zero mnt/tmpfile > > resulted in hardly slowed system and lockup, > and not in "No space left on device", as expected. Use mount option "size". The default is unlimited...

Re: tmpfs: a way to get your system down

2001-03-27 Thread Christoph Rohland
Hi Alex, On Sat, 24 Mar 2001, Alex Riesen wrote: just hit by tmpfs on 2.4.2-ac20 mount -t tmpfs mnt dd if=/dev/zero mnt/tmpfile resulted in hardly slowed system and lockup, and not in "No space left on device", as expected. Use mount option "size". The default is unlimited...

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Christoph Rohland
Hi Matt, On Sun, 4 Mar 2001, Matt Domsch wrote: > My concern is that if there continues to be a 2GB swap > partition/file size limitation, and you can have (as currently > #defined) 8 swap partitions, you're limited to 16GB swap, which then > follows a max of 8GB RAM. We'd like to sell servers

Re: 2.4 and 2GB swap partition limit

2001-03-05 Thread Christoph Rohland
Hi Matt, On Sun, 4 Mar 2001, Matt Domsch wrote: My concern is that if there continues to be a 2GB swap partition/file size limitation, and you can have (as currently #defined) 8 swap partitions, you're limited to 16GB swap, which then follows a max of 8GB RAM. We'd like to sell servers with

Re: Kernel is unstable

2001-03-02 Thread Christoph Rohland
Hi Linus, On 1 Mar 2001, Linus Torvalds wrote: > Note how do_brk() does the merging itself (see the comment "Can we > just expand an old anonymous mapping?"), and that it's basically > free when done that way, with no worries about locking etc. The same > could be done fairly trivially in mmap

Re: Kernel is unstable

2001-03-02 Thread Christoph Rohland
Hi Linus, On 1 Mar 2001, Linus Torvalds wrote: Note how do_brk() does the merging itself (see the comment "Can we just expand an old anonymous mapping?"), and that it's basically free when done that way, with no worries about locking etc. The same could be done fairly trivially in mmap too,

[Patch] make file times work in tmpfs

2001-02-14 Thread Christoph Rohland
Hi Alan, here is a patch that makes the different file timestamps work on tmpfs. Greetings Christoph --- mac10/mm/shmem.c.orig Wed Feb 14 14:39:46 2001 +++ mac10/mm/shmem.cWed Feb 14 15:30:09 2001 @@ -160,6 +160,7 @@ swp_entry_t **base, **ptr, **last;

[Patch] make file times work in tmpfs

2001-02-14 Thread Christoph Rohland
Hi Alan, here is a patch that makes the different file timestamps work on tmpfs. Greetings Christoph --- mac10/mm/shmem.c.orig Wed Feb 14 14:39:46 2001 +++ mac10/mm/shmem.cWed Feb 14 15:30:09 2001 @@ -160,6 +160,7 @@ swp_entry_t **base, **ptr, **last;

[Patch] correct tmpfs link count for directories

2001-02-13 Thread Christoph Rohland
Hi Alan, The attached patch makes tmpfs behave more like other fs's. Apparently perl expects this. Greetings Christoph diff -uNr 2.4.1-ac10/mm/shmem.c 2.4.1-ac10-nlink/mm/shmem.c --- 2.4.1-ac10/mm/shmem.c Mon Feb 12 15:01:47 2001 +++ 2.4.1-ac10-nlink/mm/shmem.c Tue Feb 13

Re: Linux 2.2.19pre10

2001-02-13 Thread Christoph Rohland
Hi Alan, On Tue, 13 Feb 2001, Alan Cox wrote: >> Yes, I understand that. But I never got any note that my fix is >> broken and I still do not understand what's the concern. > > Unless Im misreading the code the segment you poke at has > potentially been freed before it is written too. Oh yes I

Re: Linux 2.2.19pre10

2001-02-13 Thread Christoph Rohland
Hi Alan, On Tue, 13 Feb 2001, Alan Cox wrote: >> No, I do not think that it's minor. We had to bring down running >> application servers to be able to start another one, because the >> new one couldn't create or attach the systemwide os-monitoring >> segment and thus refused to start. That's

  1   2   3   4   >