| View previous topic :: View next topic |
| Author |
Message |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1393 Location: Loughborough
|
Posted: Wed Nov 21, 2012 6:14 pm Post subject: Just had a thought... |
|
|
Does deleting all the spammers from the database cause memory leaks and/or memory fragmentation and would this be a method of attempting to cause a system crash?
Just a thought... _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
bobthebob1234 LXF regular

Joined: Thu Jan 03, 2008 9:38 pm Posts: 1360 Location: A hole in a field
|
Posted: Wed Nov 21, 2012 6:59 pm Post subject: |
|
|
Why would deleting things cause cause memory leaks and/or memory fragmentation??
PHPBB usually runs on PHP&MySQL, last time I checked deleting things from MySQL doesn't cause memory leaks...
Updating and deleting lots can cause a little overhead on the MySQL tables, but that is very quick and easy to get rid of... _________________ For certain you have to be lost to find the places that can't be found. Elseways, everyone would know where it was |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Wed Nov 21, 2012 7:21 pm Post subject: |
|
|
Also, this is a very small number of transactions, each one has to be done manually. _________________ "Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein) |
|
| Back to top |
|
 |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1393 Location: Loughborough
|
Posted: Fri Nov 23, 2012 6:47 pm Post subject: |
|
|
Is the database not stored in RAM then for sheer speed?
It was only a passing thought, I am not a database man
but a HW oriented man instead. _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
guy LXF regular

Joined: Thu Apr 07, 2005 1:07 pm Posts: 861 Location: Worcestershire
|
Posted: Fri Nov 23, 2012 8:14 pm Post subject: |
|
|
It may all be loaded into RAM if it is small enough and there is enough RAM. But even so, every change (commit) must be saved to a non-volatile medium such as a hard disc, so that the system can recover it following an outage.
But you are right that deleting direct from the database can cause a crash. When say a user account is deleted directly, any post by that user will still link back to the account. and if someone views the post & clicks through, the software will probably assume that the account is still there to be linked to. If it isn't, expect the unexpected, such as a crash. Safer to delete posts & other fingerprints first, then the account. GUI tool designers tend to think of these sorts of things, so mandraulic GUIs tend to be more robust than direct database queries (e.g. allowing admins to lock the account but leaving out a "delete" button). And usually mandraulics is the only way to drive the GUI. _________________ Cheers,
Guy
The eternal help vampire |
|
| Back to top |
|
 |
Bazza LXF regular

Joined: Sat Mar 21, 2009 11:16 am Posts: 1393 Location: Loughborough
|
Posted: Fri Nov 23, 2012 9:50 pm Post subject: |
|
|
Thanks Guy...
I am purely a hobbyist computer user and......
The only reason why I asked the question in the first place was
because of the recent attack of spammers. As I wrote earlier I
am no expert on database related stuff but I can see events
that might occur on large sized database files loaded into
memory.
By adding new spammers, then, them being deleted just
increases memory load which eventually overruns into a disk
based swapfile and/or causes system lock up or crash due to
out of memory error. Much akin to a buffer overrun, but on
a much larger scale...
Thanks a lot, you answered my question admirably.
CYA... _________________ 73...
Bazza, G0LCU...
Team AMIGA... |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Fri Nov 23, 2012 11:11 pm Post subject: |
|
|
| guy wrote: | | But you are right that deleting direct from the database can cause a crash. When say a user account is deleted directly, any post by that user will still link back to the account. and if someone views the post & clicks through, the software will probably assume that the account is still there to be linked to. |
When a user is deleted their posts still appear with their username, but there is no profile link, so you can't try to view a non-existent user that way. If you load the page while they are still a user but follow the link after they have been deleted, you just get a no such user page. _________________ "Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein) |
|
| Back to top |
|
 |
1slipperyfish Forum Jester

Joined: Mon May 09, 2005 3:52 pm Posts: 2369 Location: wigan
|
Posted: Sat Nov 24, 2012 5:30 pm Post subject: |
|
|
| Bazza wrote: | | but a HW oriented man instead. |
hard work??
paul |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Sat Nov 24, 2012 9:23 pm Post subject: |
|
|
| 1slipperyfish (troll) wrote: | | hard work?? |
Yes, you are  _________________ "Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein) |
|
| Back to top |
|
 |
1slipperyfish Forum Jester

Joined: Mon May 09, 2005 3:52 pm Posts: 2369 Location: wigan
|
Posted: Sun Nov 25, 2012 12:51 pm Post subject: |
|
|
| nelz wrote: | | 1slipperyfish (troll) (troll) wrote: | | hard work?? |
Yes, you are  |
sudo apt-get i'm-lost |
|
| Back to top |
|
 |
heiowge LXF regular

Joined: Wed Feb 27, 2008 8:21 pm Posts: 1805 Location: Cheshire, UK
|
Posted: Sun Nov 25, 2012 2:17 pm Post subject: |
|
|
| 1slipperyfish (troll) (troll) wrote: | | nelz wrote: | | 1slipperyfish (troll) (troll) (troll) wrote: | | hard work?? |
Yes, you are  |
sudo apt-get i'm-lost |
sudo apt-get lost.
Sorry. Couldn't resist!  _________________ AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.
eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great. |
|
| Back to top |
|
 |
1slipperyfish Forum Jester

Joined: Mon May 09, 2005 3:52 pm Posts: 2369 Location: wigan
|
Posted: Mon Nov 26, 2012 5:12 pm Post subject: |
|
|
| heiowge wrote: | | 1slipperyfish (troll) (troll) (troll) wrote: | | nelz wrote: | | 1slipperyfish (troll) (troll) (troll) (troll) wrote: | | hard work?? |
Yes, you are  |
sudo apt-get i'm-lost |
sudo apt-get lost.
Sorry. Couldn't resist!  |
that's what i said but these pesky moderators keep changing my posts
paul |
|
| Back to top |
|
 |
Dutch_Master LXF regular
Joined: Tue Mar 27, 2007 2:49 am Posts: 2359
|
Posted: Mon Nov 26, 2012 5:53 pm Post subject: |
|
|
Gee, I wonder why....
It was so nice and quiet here with you absent fishy one, what have we done wrong to get you back? Or rather: what went wrong elsewhere that made you come back, gotten your ar*e kicked around in that place?  |
|
| Back to top |
|
 |
Rhakios Moderator

Joined: Thu Apr 07, 2005 12:18 am Posts: 7484 Location: Midlands, UK
|
Posted: Mon Nov 26, 2012 7:34 pm Post subject: |
|
|
| Dutch_Master wrote: | Gee, I wonder why....
It was so nice and quiet here with you absent fishy one, what have we done wrong to get you back? Or rather: what went wrong elsewhere that made you come back, gotten your ar*e kicked around in that place?  |
Surely you noticed that 1sf (troll) reappeared just around the time of the spam flood? Coincidence? I think not!
 _________________ Bye, Rhakios |
|
| Back to top |
|
 |
1slipperyfish Forum Jester

Joined: Mon May 09, 2005 3:52 pm Posts: 2369 Location: wigan
|
Posted: Mon Nov 26, 2012 7:46 pm Post subject: |
|
|
yo dm always a pleasure i haven't been anywhere else but here where i belong  |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|