C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old January 27th, 2003, 01:16 PM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 7
It is not going to be a static list at all. It will be updated and changed during almost every access. I am storing IPs that hit my websites. Almost every IP that hits it will be unique and must be added into the list. Considerations towards finding an already existed copy of the same IP have to be taken, as I do not want to add the same IP twice.
__________________
Matthew Doucette / Xona.com

Reply With Quote
  #17  
Old January 27th, 2003, 01:19 PM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 7
Quote:
Originally posted by M.Hirsch
It does make sense. But i doubt this is possible. I donīt know of any C program that compiles on all favors of unix (besides the "helloworld.c").
This doesn't give me high hopes! A program of such simple complexity that I am speaking of must be able to be compile and distributed to other flavors of Unix and have it work?

Quote:
Originally posted by M.Hirsch
I would not code it for the "average" system. Define minimum requirements. Maybe not mysql, but GB of RAM and type+MHz of the CPUs. Anyway you have to test your program on any OS that you claim it is working on...
I will definitely do this. Good advice all around.

Reply With Quote
  #18  
Old January 27th, 2003, 01:30 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
i think you underestimate the complexity it takes to make such a program. especially without a database.
Quote:
12 hits per second.

in this case, to save CPU power and harddisk access times, you probably would want to setup even two servers, one webserver and one database server.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #19  
Old January 27th, 2003, 01:47 PM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 7
Quote:
Originally posted by M.Hirsch
i think you underestimate the complexity it takes to make such a program. especially without a database.
My database is going to be so simple though. Plus I have coded things exactly like this before in Perl and stored all the data in a flatfile as text. I just want to do the same thing except store it in binary perhaps as a linked list. It is just reading and writing to a disc. How incompatible can that get?

Quote:
Originally posted by M.Hirsch
in this case, to save CPU power and harddisk access times, you probably would want to setup even two servers, one webserver and one database server.
This is something I want to sell to other webhosters and webmasters, so I can not have any extravagant solutions like this.

Reply With Quote
  #20  
Old January 27th, 2003, 02:01 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
Quote:
My database is going to be so simple though.

again, 12 hits per second is not simple.

for the compatibility issues: ever read about file locking? know the different behaviour of linux and windows? do you know that PERL does not support locking on one of these OSs (i canīt remember which one it was)
Quote:
It is just reading and writing to a disc. How incompatible can that get?

the problem is not what your program does. it is what like 20-50 instances of your program running at the same time will do and what different OSs will do to your program...

letīs end this part of the discussion. i say itīs complex, you say itīs easy. so just implement it and weīll see who is right

Reply With Quote
  #21  
Old January 27th, 2003, 02:03 PM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
avarage

just as a side note which may or may not be useful:

i'm reading about randomness, in particular poisson curve/distribution stuff and the main first thing you get from this is that if something avarages at 12 per second that does not mean that typically each second you get 12. things come in bursts. 'an avarage of 12 per second' can easily make you think you'll usually get 12 per second and it won't fluctuate too much above or below 12 per second, when this is not actually the case in reality at all, so an avarage number ratio can easily give the wrong impression.

Reply With Quote
  #22  
Old January 27th, 2003, 02:10 PM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 7
Re: avarage

Very true, balance. You might get 50 all in one second sometimes. I know that they traffic on my server sometimes is twice as high during peak hours as it is in low hours, so that means that 12/second goes to 24/second on average for those peak hours. Add that to the randomness you are talking about, then 50 in one second is easily attainable when dealing with 1,000,000 hits/day.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > limitations of a HD? (using numerous directories & files to split-up/sort databases)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT