🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Juergen Helbing Mon, 25 Aug 2003 08:38
Non defragmenting file system for selfmade news-server ?
#66556
Author: Juergen Helbing
Date: Mon, 25 Aug 2003 08:38
64 lines
2912 bytes
Hi again,

with the continuous development of MyNews 
(yes - this is still a running project) I'm more and more
faced with the problem that all those 'growing' files 
are defragmenting heavily the harddisk.
MyNews is based on Win32 - so I've to live with
that fact.

The only solution I'm evaluating would be to write
an 'own file system' which is specialized for 
storing 'growing file information' in a large
portion of a harddisk. I would reserve 100 Gigs
froma blank harddisk - and create one huge file
with windows. Then I would make the entire internal
management myself.

'Growing Files' are:
* The Histories (msg-ids): 50->2000 Megs
   (one general, one per group)
* Xover Cache (30k -> 1000 k) for 10..10000 grps
* Index-files and btree search files for them.
* Statistical files + Logfiles

(I'm already using 'rotating buffers' for the articles)


My questions:

Does anybody know a 'set of procedures' (open source)
which 'simulates' a file-system - and is already specialized
for the purpose ?
It would not be too hard to write such a 'disk management'
myself - but if it exists already, then I would not invent
the wheel again.

How does other powerful news-server software handle all
these 'growing' files ?

((
Does anybody know of "other file system products" for 
Win32 which are better than NTFS/FAT32 - or a way how
to install an own file-system into W2K/XP ?
Whenever I defrag my drives then I'm wondering how
bad NTFS+FAT32 are performing. Perhaps a 'better file
system' - which also handles a million smaller files properly
and without clustering - could be a nice option to Win.
))


In the beginning I thought that a "personal news-server"
would be an easy thing to write. But with the large disks
today (I'm having 500 Gigs online for a personal server ;-)
and a latency time of 60 days for some large binary groups
the same problems as for 'real news-servers' are coming up.....


TIA for tips and references.

-- 
Juergen
--------------------------------
MyNews for Windows:  www.winews.net
Re: Non defragmenting file system for selfmade news-server ?
#66559
Author: Steve
Date: Mon, 25 Aug 2003 11:29
36 lines
2500 bytes
Juergen Helbing wrote:

> The only solution I'm evaluating would be to write
> an 'own file system' which is specialized for 
> storing 'growing file information' in a large
> portion of a harddisk. I would reserve 100 Gigs
> froma blank harddisk - and create one huge file
> with windows. Then I would make the entire internal
> management myself.

One issue with large partitions / filesystems in Windows is how long 
its going to take to check it after an untidy shutdown.  100Gb 
probably won't be too bad, but still several hours.

> Does anybody know a 'set of procedures' (open source)
> which 'simulates' a file-system - and is already specialized
> for the purpose ?
> It would not be too hard to write such a 'disk management'
> myself - but if it exists already, then I would not invent
> the wheel again.

The ones I know of use a single file to simulate a file system for 
the purpose of encryption.  BestCrypt or PGPdisk are good examples.

> Does anybody know of "other file system products" for 
> Win32 which are better than NTFS/FAT32 - or a way how
> to install an own file-system into W2K/XP ?
> Whenever I defrag my drives then I'm wondering how
> bad NTFS+FAT32 are performing. Perhaps a 'better file
> system' - which also handles a million smaller files properly
> and without clustering - could be a nice option to Win.

You have the option of Dynamic Disks within W2K and XP.  I'm not sure 
how well these handle fragmentation however.  They enable you to span 
a filesystem across multiple partitions which might be of value where 
you require very large volumes.
Re: Non defragmenting file system for selfmade news-server ?
#66561
Author: (akula)
Date: Mon, 25 Aug 2003 15:36
60 lines
3495 bytes
archiver@i3w.com (Juergen Helbing) wrote:

note: please use X-No-Archive: yes in replies to me (or strip
my nym from the reply)

[snip]
>Does anybody know a 'set of procedures' (open source)
>which 'simulates' a file-system - and is already specialized
>for the purpose ?
>It would not be too hard to write such a 'disk management'
>myself - but if it exists already, then I would not invent
>the wheel again.
>
As Steve mentioned, Jetico's Bestcrypt for Linux includes the 
source code -> http://www.jetico.com/

[snip]
>Does anybody know of "other file system products" for 
>Win32 which are better than NTFS/FAT32 - or a way how
>to install an own file-system into W2K/XP ?

Microsoft will sell you the NTFS SDK, but it is expensive
and the licensing terms are pretty onerous.

If you search for NTFS SDK at Google, you'll get quite a
few links with useful information and source code.  The
linux e2fs filesystem has been ported to NT and some code
is available.  VaporCD at SourceForge is also useful for
learning how to mount container files.

There are a couple of books on NT file systems out there too.

>Whenever I defrag my drives then I'm wondering how
>bad NTFS+FAT32 are performing. Perhaps a 'better file
>system' - which also handles a million smaller files properly
>and without clustering - could be a nice option to Win.
>))
I'm not sure you have the right approach to this.  Microsoft
has dumped millions of R&D dollars into NTFS and you are
unlikely to improve performance with your own code.
>
>In the beginning I thought that a "personal news-server"
>would be an easy thing to write. But with the large disks
>today (I'm having 500 Gigs online for a personal server ;-)
>and a latency time of 60 days for some large binary groups
>the same problems as for 'real news-servers' are coming up.....
>
The problem is that indexing, sorting and randomly retrieving
data from an ever changing database is CPU intensive.  Most
usenetizens think it's only a matter of throwing more drives
at the problem, but that's not the real issue.

You may want to look at this from a database perspective.  I
recommend you really take a hard look at NTFS 5.0 and identify
areas (if any) where you can improve performance.  I don't
think you gain anything from a single file type of system.

http://firebird.sourceforge.net/ might be a solution.

You can send me email via nym.alias.net if desired.
Re: Non defragmenting file system for selfmade news-server ?
#66568
Author: Juergen Helbing
Date: Wed, 27 Aug 2003 04:44
44 lines
2377 bytes
Steve <steve@nospam-goofer.co.uk> wrote:

>One issue with large partitions / filesystems in Windows is how long 
>its going to take to check it after an untidy shutdown.  100Gb 
>probably won't be too bad, but still several hours.

Good point.
I'm not too experienced with such problems because my 
NT/XP-servers are running for months/years without any
crash. But I'm hoping that having just 2-5 huge files on
a 100 Gig disk would improve also the chkdsk speed
enormously. 


>> Does anybody know a 'set of procedures' (open source)
>> which 'simulates' a file-system - and is already specialized
>> for the purpose ?
>
>The ones I know of use a single file to simulate a file system for 
>the purpose of encryption.  BestCrypt or PGPdisk are good examples.

A great tip - this seems to be exactly what I need.

>You have the option of Dynamic Disks within W2K and XP.  I'm not sure 
>how well these handle fragmentation however.  They enable you to span 
>a filesystem across multiple partitions which might be of value where 
>you require very large volumes.

I dont believe that M$ would do their job better than RAID ;-)
"Dynamic Disks" are based on NTFS as well - so I dont expect
a better behavior.


I'll have a look at 'BestCrypt' and 'PGPdisk'.
Having also encryption included would be the perfect solution.
This would also permit privacy for the stored information.


Good tips - Thanks a lot.

CU
-- 
Juergen
Re: Non defragmenting file system for selfmade news-server ?
#66569
Author: Juergen Helbing
Date: Wed, 27 Aug 2003 04:54
89 lines
3815 bytes
"(akula)" wrote:

>archiver@i3w.com (Juergen Helbing) wrote:
>
>note: please use X-No-Archive: yes in replies to me (or strip
>my nym from the reply)

ROTFL !

>As Steve mentioned, Jetico's Bestcrypt for Linux includes the 
>source code -> http://www.jetico.com/

Thanks for that link.


>>Does anybody know of "other file system products" for 
>>Win32 which are better than NTFS/FAT32 - or a way how
>>to install an own file-system into W2K/XP ?
>
>Microsoft will sell you the NTFS SDK, but it is expensive
>and the licensing terms are pretty onerous.

I'll check my Universal Edition if it is included.

>If you search for NTFS SDK at Google, you'll get quite a
>few links with useful information and source code.  The
>linux e2fs filesystem has been ported to NT and some code
>is available.  

Good tip.
I hoped that the linux guys would have ported their
filesystem also to win32.

>VaporCD at SourceForge is also useful for
>learning how to mount container files.

Great tip !

>>Whenever I defrag my drives then I'm wondering how
>>bad NTFS+FAT32 are performing. Perhaps a 'better file
>>system' - which also handles a million smaller files properly
>>and without clustering - could be a nice option to Win.
>>))
>I'm not sure you have the right approach to this.  Microsoft
>has dumped millions of R&D dollars into NTFS and you are
>unlikely to improve performance with your own code.

I believe that 'dumped' is the right word in this statement :-)
Still all my programs are _performing_ faster on FAT32 than
on NTFS. 


>>In the beginning I thought that a "personal news-server"
>>would be an easy thing to write. But with the large disks
>>today (I'm having 500 Gigs online for a personal server ;-)
>>and a latency time of 60 days for some large binary groups
>>the same problems as for 'real news-servers' are coming up.....
>>
>The problem is that indexing, sorting and randomly retrieving
>data from an ever changing database is CPU intensive.  Most
>usenetizens think it's only a matter of throwing more drives
>at the problem, but that's not the real issue.

Yes, really.


>You may want to look at this from a database perspective.  I
>recommend you really take a hard look at NTFS 5.0 and identify
>areas (if any) where you can improve performance.  I don't
>think you gain anything from a single file type of system.

I must admit that I'm not very familair with the latest features
of NTFS. Does it have now own options for CreateFile() as
"OPTIMIZE_FOR_GROWTH" or "OPTIMIZE_FOR_DISKSPACE" ?

As long as it uses clusters and stores short files in the MFT it
is simply unusable for most purposes. 


>http://firebird.sourceforge.net/ might be a solution.

Another fine link to explore.

Thanks for your reply. Very informative.
-- 
Juergen


Re: Non defragmenting file system for selfmade news-server ?
#66572
Author: (akula)
Date: Wed, 27 Aug 2003 17:28
57 lines
3295 bytes
archiver@i3w.com (Juergen Helbing) wrote:

>I wrote:
[snip]
>>Microsoft will sell you the NTFS SDK, but it is expensive
>>and the licensing terms are pretty onerous.
>
>I'll check my Universal Edition if it is included.
>
It isn't.  Last I checked you needed a background check from
INTERPOL, a blood sacrifice and $1000 USD.
http://www.microsoft.com/whdc/ddk/IFSkit/whitepaper.mspx
and I'm not kidding about the blood sacrifice,
http://www.storageadmin.com/Articles/Index.cfm?ArticleID=16436

The OSR FSDK looks like it might be a better option,
http://www.osr.com/toolkits_fsdk.shtml

A few more links:
http://sys.xiloo.com/projects/projects.htm#ext2fsd
http://www.acc.umu.se/~bosse/

[snip]
>>I'm not sure you have the right approach to this.  Microsoft
>>has dumped millions of R&D dollars into NTFS and you are
>>unlikely to improve performance with your own code.
>
>I believe that 'dumped' is the right word in this statement :-)
>Still all my programs are _performing_ faster on FAT32 than
>on NTFS. 
>
That's by design.  FAT32 does not have the overhead of NTFS.
No security, no compression, no encryption, etc.

The maximum filesize on FAT32 is 4 GB, so you either have to
go with NTFS anyway for a larger container file, or write a
new filesystem. http://www.ntfs.com/ntfs_vs_fat.htm

[snip]
>>You may want to look at this from a database perspective.  I
>>recommend you really take a hard look at NTFS 5.0 and identify
>>areas (if any) where you can improve performance.  I don't
>>think you gain anything from a single file type of system.
>
>I must admit that I'm not very familair with the latest features
>of NTFS. Does it have now own options for CreateFile() as
>"OPTIMIZE_FOR_GROWTH" or "OPTIMIZE_FOR_DISKSPACE" ?
>
I'd have to check.  My knowledge centers on encrypted file systems
and I haven't looked into raw performance.  The Platform SDK and
DDK docs from MSDN should have the answers.

>As long as it uses clusters and stores short files in the MFT it
>is simply unusable for most purposes. 
>
There are ways to tweak NTFS parameters to optimize random small
file I/O operations.
Re: Non defragmenting file system for selfmade news-server ?
#66574
Author: iMeowbot
Date: Thu, 28 Aug 2003 00:10
55 lines
3720 bytes
In article <1238a.p83200@archiver.winews.net>,
 archiver@i3w.com (Juergen Helbing) wrote:

> Does anybody know a 'set of procedures' (open source)
> which 'simulates' a file-system - and is already specialized
> for the purpose ?

Open source?  Not really, but there is an inexpensive commercial 
implementation of ext2fs for Windows.  http://www.ext2fs-anywhere.com/  
I've used it and it works very well, but I never really noticed any 
substantial difference ion performance between it and NTFS.

> It would not be too hard to write such a 'disk management'
> myself - but if it exists already, then I would not invent
> the wheel again.

You could also take another look at your spool code and re-use it for 
the other databases.

> How does other powerful news-server software handle all
> these 'growing' files ?

Allocate big chunks of storage in anticipation of need =)  Yes, you knew 
that, but sometimes the simplest answer is the best one. VMS used to 
have preallocation at the OS level in so that application programs 
didn't have to worry too much about the problem, it's too bad that the 
idea wasn't brought over to NT.

> ((
> Does anybody know of "other file system products" for 
> Win32 which are better than NTFS/FAT32 - or a way how
> to install an own file-system into W2K/XP ?
> Whenever I defrag my drives then I'm wondering how
> bad NTFS+FAT32 are performing. Perhaps a 'better file
> system' - which also handles a million smaller files properly
> and without clustering - could be a nice option to Win.
> ))

A Microsoft IFS license and SDK costs about USD 800 :P

You might find it more interesting to look here: 
http://uranus.it.swin.edu.au/~jn/linux/ext2ifs.htm  While the Linux FS 
itself might not be of much use, the glue code may help.

Really though, it might be easier (for you to program and for users to 
install) if you skip the idea of making a "real" filesystem and instead 
do it in user space within container files.

> In the beginning I thought that a "personal news-server"
> would be an easy thing to write. But with the large disks
> today (I'm having 500 Gigs online for a personal server ;-)
> and a latency time of 60 days for some large binary groups
> the same problems as for 'real news-servers' are coming up.....

Maybe you can borrow some ideas from http://tortoise.maxwell.syr.edu/
Re: Non defragmenting file system for selfmade news-server ?
#66605
Author: Juergen Helbing
Date: Tue, 02 Sep 2003 05:58
62 lines
3339 bytes
iMeowbot <iMeowbot@mac.com> wrote:

>Open source?  Not really, but there is an inexpensive commercial 
>implementation of ext2fs for Windows.  http://www.ext2fs-anywhere.com/  

Nice link - thanks a lot.
Unfortunately commercial-ware is not too helpful for freeware writers ;-)

>I've used it and it works very well, but I never really noticed any 
>substantial difference ion performance between it and NTFS.

This is very interesting to know.
So even on a LINUX system a "special treatment" of the news-server-files
would be necessary. I thought that EFS would be more powerful than NTFS.


>> How does other powerful news-server software handle all
>> these 'growing' files ?
>
>Allocate big chunks of storage in anticipation of need =)  Yes, you knew 
>that, but sometimes the simplest answer is the best one. 

It seems that real efficient handling of computer information is
still in the hands of the responsible programmer. 
Operating Systems did not evolve within the last 30 years of
my programming experience. 


>You might find it more interesting to look here: 
>http://uranus.it.swin.edu.au/~jn/linux/ext2ifs.htm  While the Linux FS 
>itself might not be of much use, the glue code may help.

Great link again !
I knew that asking here would really help.


>Really though, it might be easier (for you to program and for users to 
>install) if you skip the idea of making a "real" filesystem and instead 
>do it in user space within container files.

Yes, of course it would be easier for the concrete case.
But as all programmers I'm always looking for new "product ideas".
A file-system which handles information (files) more efficiently for
>100k small files as well as for 'growing files' as well as 'usual'
application could be a general solution as well:
Users are starting to collect their digital photos, docs, eMails, sounds
on their disks. The Microsoft solution will be to stop storing the "as files"
but as a "huge database" with DRMS.

The jobs of "storing", "retrieval", "finding", "dvd+cd-archive"... are
very important for huge masses of digital data in the future... 


Thanks a lot for all the links.
Having sample code and an approach to the complexity before
concrete work is started helps a lot.

CU
-- 
Juergen

Re: Non defragmenting file system for selfmade news-server ?
#66607
Author: iMeowbot
Date: Wed, 03 Sep 2003 03:17
37 lines
3098 bytes
In article <16587.293201@archiver.winews.net>,
 archiver@i3w.com (Juergen Helbing) wrote:

[ext2fs]

> >I've used it and it works very well, but I never really noticed any 
> >substantial difference ion performance between it and NTFS.
> 
> This is very interesting to know.
> So even on a LINUX system a "special treatment" of the news-server-files
> would be necessary. I thought that EFS would be more powerful than NTFS.

The two filesystems are very much alike in the ways that matter, and 
NTFS really is a very good general purpose filesystem.

> It seems that real efficient handling of computer information is
> still in the hands of the responsible programmer. 
> Operating Systems did not evolve within the last 30 years of
> my programming experience. 

Thinkg like log-stuctures filesystems have appeared, but they really 
don't offer the hoped-for improvements.  (They _are_ often an 
improvement on traditional systems, but aren't good enough to replace 
special purpose structures.)

> Yes, of course it would be easier for the concrete case.
> But as all programmers I'm always looking for new "product ideas".
> A file-system which handles information (files) more efficiently for
> >100k small files as well as for 'growing files' as well as 'usual'
> application could be a general solution as well:
> Users are starting to collect their digital photos, docs, eMails, sounds
> on their disks. The Microsoft solution will be to stop storing the "as files"
> but as a "huge database" with DRMS.

Yes, they have been playing with that idea since at least Cairo.  I'm 
not sure that better indexing will help all that much.  Fragmentation is 
really a hardware problem.
Re: Non defragmenting file system for selfmade news-server ?
#66608
Author: Russ Allbery
Date: Wed, 03 Sep 2003 03:24
28 lines
2351 bytes
Juergen Helbing <archiver@i3w.com> writes:

> It seems that real efficient handling of computer information is still
> in the hands of the responsible programmer. Operating Systems did not
> evolve within the last 30 years of my programming experience.

ReiserFS seems to be trying hard to really advance the art of file
systems, rather than just fixing the obvious problems.

> Yes, of course it would be easier for the concrete case.
> But as all programmers I'm always looking for new "product ideas".
> A file-system which handles information (files) more efficiently for
> >100k small files

Both ReiserFS and XFS try to do this.

> as well as for 'growing files'

This seems to be a less common concern.  I'm not entirely sure why; I
suppose that most data storage isn't like that, but I'd think there were
enough log files out there, often high volume, that someone would have
thought about this.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads