Re: MySQL file system

Поиск
Список
Период
Сортировка
От Alfred Perlstein
Тема Re: MySQL file system
Дата
Msg-id 20010116194342.G7240@fw.wintelcom.net
обсуждение исходный текст
Ответ на Re: MySQL file system  (Joseph Shraibman <jks@selectacast.net>)
Ответы Re: MySQL file system
Список pgsql-general
* Joseph Shraibman <jks@selectacast.net> [010116 19:29] wrote:
> Karl DeBisschop wrote:
> >
> > Ned Lilly wrote:
> > >
> > > Anyone heard about this?
> > >
> > > http://no.spam.ee/~tonu/mysqlfs.html
> >
> > I was bout to copy about 3000 RFCs onto my hard drive last night.
> > Bowsing them online was just too painfully slow.
> >
> > Then I realized that although I had the disk space for the total file
> > size, they were mostly smaller than a block on my disk, so I was going
> > to loose alot of space.
> >
> > My first thought was, well postgress would stor that as one file - that
> > might work. Then I thought "I'm trying to be FAST here -- any time spent
> > on this is a distraction. Too bad there is no such thing as
> > PostgreSQL/FS"
> >
>
> So what is needed it to be able to mount a .zip or a .tar file as a file
> system with the loopback device. Mounting a database on the filesystem
> sounds pretty useless to me.

Raw disk access allows:

1) removing the double buffering problem associated with read/write + shm
2) your own filesystem semantics and explicit block flushing versus whole
   file flushing (fsync)
3) removing layers of abstraction, you loose the FS abstraction and allow
   the database abstraction to take over which shortens the code path
   and gives complete control over the data to the database.

However it limits:

1) doing backups, you must either have a utility that can read the
   'dbfs' or use 'dd' to copy the entire disk.
   (this is ok, we have pg_dump)
2) taking advantage of built in filesystem advantages like snapshots,
   logging and other advanced features.
   (only things i can think of is snapshots to make an immediate backup
   but then again we have pg_dump as well as filesystems that can grow)
3) portability, not all OS's support character devices, the ones that
   don't can't safely guarantee data write ordering.
4) development time, as the database now has a filesystem module
   to maintain.

I'm sure there's a few points that I missed but there are some
advantages, Oracle does or did have a "raw disk" mode.

--
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."

В списке pgsql-general по дате отправления:

Предыдущее
От: Iwan Tutuka Pambudi
Дата:
Сообщение: >>>>> pg_dump in crontab
Следующее
От: "Mike Miller"
Дата:
Сообщение: Re: >>>>> pg_dump in crontab