<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.5700.6" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=770471820-09102006><FONT face=Arial color=#0000ff size=2>I'm 
just going to jump in here, and ask a stoopid question.</FONT></SPAN></DIV>
<DIV><SPAN class=770471820-09102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=770471820-09102006><FONT face=Arial color=#0000ff size=2>How 
could you possibly write a multi-user front end in AJAX&nbsp;without using a 
database backend like MySQL?</FONT></SPAN></DIV>
<DIV><SPAN class=770471820-09102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=770471820-09102006><FONT face=Arial color=#0000ff 
size=2>Doug.</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Erick Perez 
  [mailto:eaperezh@gmail.com]<BR><B>Sent:</B> Monday, October 09, 2006 1:58 
  PM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial 
  Discussion<BR><B>Subject:</B> Re: [asterisk-users] Asterisk RT on Disk On 
  Module Performance andDurability<BR><BR></FONT></DIV>
  <DIV>Jeremy, Cohen, Kris, thanks to all of you.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Indeed after reading the Sandisk paper it shed a lot of light on this 
  matter. The whole idea is to have a large scale system with no moving parts 
  (we call a large system something with&nbsp;250 users, at least down here 
  ;-)&nbsp; ) </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>the whole idea is for a customer that needs an IVR in 4 languages with 
  autoattendant, extensive CDR and plotted usage patterns as well as voicemail. 
  Voicemail will be used *a lot*, probably about one thousand voicemails per day 
  and the customer does not want VM-to-Email (God knows why!). </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Oh, and the whole idea of the database is because the developers are 
  working in an AJAX based interface that does the asterisk 
  config/plotting/vm/day-to-day stuff with ARA, so a db is needed.</DIV>
  <DIV>I started learning asterisk with flat files...it works for me...but 
  hey...times are changing.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Who knows, maybe the whole thing can be fitted in ram (except for the vm 
  part)...we'll see. I had to ask anyway, but i don't like Dbs either....it adds 
  and extra breakup layer (maybe Im kind of outdated).</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Smaller iPBXs will definitely be CF and RAM based and I, at least, will 
  force VMtoEmail and do all the processing in RAM.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Again,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks to all of you.</DIV>
  <DIV><BR>P.D. I will later follow this thread with the full working configs 
  that will take place at user premises. And for the sake of the test. I will 
  try to kill a sandisk USB with the full config.</DIV>
  <DIV><BR>&nbsp;</DIV>
  <DIV><SPAN class=gmail_quote>On 10/8/06, <B class=gmail_sendername>Kristian 
  Kielhofner</B> &lt;<A href="mailto:kris@krisk.org">kris@krisk.org</A>&gt; 
  wrote:</SPAN> 
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Jeremy 
    McNamara wrote:<BR>&gt; Tzafrir Cohen wrote:<BR>&gt;&nbsp;&nbsp;&gt; Hmmmm, 
    I'm not sure that this is exactly the data you're after. 
    <BR>&gt;&gt;<BR>&gt;&gt; You're looking for the ammounts of writes for the 
    disk block that gets<BR>&gt;&gt; the most writes.<BR>&gt;&gt;<BR>&gt;&gt; 
    E.g: for a standard ext3 filesystem, the journal area would 
    probably<BR>&gt;&gt; have very frequent writes, whereas most of the system 
    would remain<BR>&gt;&gt; mostly unchanged.<BR>&gt;<BR>&gt;<BR>&gt; Again, if 
    the embedded system is setup properly, there is NO writing to<BR>&gt; the 
    flash during normal operations, thus the device won't be killed by <BR>&gt; 
    its alleged 2 million write limitation.<BR>&gt;<BR>&gt; Kris and I had a 
    quick discussion on this topic, off-list, and his<BR>&gt; original 
    flash-based device is still in constant operation after 2 years<BR>&gt; and 
    I have flash modules that I purposely tried to kill with writes. It <BR>&gt; 
    took significant effort to start causing error situations, which 
    were<BR>&gt; very easily detected before the system would become 
    unusable.<BR>&gt;<BR>&gt; Erick, you should focus on having a quick action 
    restoration plan and <BR>&gt; extra DOMs always readily 
    available.&nbsp;&nbsp;Then when a failure situation is<BR>&gt; detected, you 
    can react very quickly.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Jeremy 
    McNamara<BR><BR>Jeremy, Erick -<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    I have always pointed to this SanDisk whitepaper: <BR><BR><A 
    href="http://www.sandisk.com/Assets/File/OEM/WhitePapersAndBrochures/RS-MMC/WPaperWearLevelv1.0.pdf">http://www.sandisk.com/Assets/File/OEM/WhitePapersAndBrochures/RS-MMC/WPaperWearLevelv1.0.pdf</A><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    While it specifically discusses their industrial line of CF cards, it <BR>is 
    pretty obvious that flash can, and often does, last much longer 
    than<BR>other components in a system when properly 
    implemented.&nbsp;&nbsp;You will notice<BR>that the SHORTEST expected life 
    of a CF card in their test scenarios was <BR>over 70 years!&nbsp;&nbsp;How 
    long is your power supply going to last?&nbsp;&nbsp;Even if<BR>the consumer 
    level cards had 1/10 the life expectancy, that is still<BR>seven 
    years.&nbsp;&nbsp;I expect to get at least that from my original 
    AstLinux<BR>system.&nbsp;&nbsp;It's been two so far, I'll let you know how 
    it is doing in<BR>another five years 
    :).<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JFFS (and similar FSs) are 
    not appropriate for CF cards or DOMs.&nbsp;&nbsp;They<BR>are meant to be 
    used directly on flash memory and do their own wear <BR>leveling and in some 
    cases, compression.&nbsp;&nbsp;All kinds of commercial<BR>devices use 
    JFFS2.&nbsp;&nbsp;If you are using a CF or DOM with Linux, ext2 is 
    the<BR>best FS to use.&nbsp;&nbsp;CF cards and DOMs use their own wear 
    leveling, so none<BR>is required in the operating system or file 
    system.&nbsp;&nbsp;CF cards and DOMs<BR>hide wear leveling from you and 
    expose themselves as an ordinary IDE 
    device.<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I echo Jeremy's 
    conclusions.&nbsp;&nbsp;With a properly designed operating <BR>system, 
    decent flash memory, and a reasonable usage pattern, I can tell<BR>you (with 
    a great amount of certainty) that in most situations, CF cards<BR>will 
    outlast just about any hard drive (even SCSI) when used 24/7. <BR>These 
    days, it really is pretty tough to trash 
    flash.<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; However, if you are 
    running a MySQL cluster or something with several,<BR>multi-gigabyte 
    databases, no type of flash memory will last very long! 
    :)<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To get back to answering your 
    question, I HIGHLY recommend that you<BR>avoid MySQL and realtime on your 
    box with a DOM.&nbsp;&nbsp;Nothing against either<BR>(MySQL or Realtime), 
    but they will probably make your device more <BR>complicated than it needs 
    to be while substantially shortening the life<BR>of your DOM.&nbsp;&nbsp;If 
    you absolutely have to use MySQL, you might have better<BR>luck using a 
    MySQL storage engine that uses fewer writes than InnoDB, <BR>but I am no 
    expert on that.<BR><BR>--<BR>Kristian 
    Kielhofner<BR>_______________________________________________<BR>--Bandwidth 
    and Colocation provided by <A href="http://Easynews.com">Easynews.com</A> 
    --<BR><BR>asterisk-users mailing list <BR>To UNSUBSCRIBE or update options 
    visit:<BR>&nbsp;&nbsp;<A 
    href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- 
  <BR>------------------------------------------------------------<BR>Erick 
  Perez<BR>Panama Sistemas<BR>Integradores de Telefonia IP y Soluciones Para 
  Centros de Datos<BR>Panama, Republica de Panama<BR>Cel Panama. +(507) 
  6694-4780 <BR>------------------------------------------------------------ 
</BLOCKQUOTE></BODY></HTML>