| View previous topic :: View next topic |
| Author |
Message |
Camarade_Tux skilled
Joined: 14 Nov 2003 Posts: 340 Location: Paris
|
Posted: Sun Oct 15, 2006 8:32 am Post subject: Problem with system restore and mldonkey config files |
|
|
Hi everybody,
Last week while I was using a computer at my father's office which has mldonkey runnning as a service (remember, windows) I thought I could speed it up a bit.
Nothing to remove or disabled (the computer has SQL Server on it. ), let's defragment.
Analysis : 200 000 files on the computer and it seems tons of fragmented files are coming from system restore. Why lose time defragmenting them ?
Clean manager -> clean all system restore points except the last one.
Analysis again : 50 000 files.
I then browsed to system restore's directory and saw the kept restore point was full of old mldonkey config files. I mean really full of : probably 90% of the files were coming from mldonkey!
</mylife>
---------
I don't know how mldonkey manages its config files and backups but I know some things about windows's system restore : put a file in recycle bin, delete it, it will appear in your latest restore point!
I just found this page on msdn.
A few quotations:
| Quote: | | This kernel level filter driver monitors file system operations, and, for select file types and operations, quickly interrupts an operation (for example, DELETE FILE) and copies or moves the original file before the operation is complete. The file changes are entered into a log, and the file copies and logs are stored in an archive on the drive or partition where the original file resided. |
| Quote: | To achieve the desired behavior after a restore, application developers should answer the following:
...
Are user-editable files, or intended personal data files (for example, .pdf, .xls, .htm) named in such a way that they will not be monitored as included extension types? For example, have you named a file extension .ini that a user can modify as a personal data file? If so, this will impede the perception of your product's performance, as well as cause the user to lose work as a result of a restore. (See the Monitored File Extensions list in the System Restore section of the Platform SDK.)
... |
| Quote: | Not Restored
...
Items listed in both Filesnottobackup and KeysnottoRestore (hklm->system->controlset001->control->backuprestore->filesnottobackup and keysnottorestore)
... |
These values are REG_MULTI_SZ, their names are only descriptions and their data are exclusions, such as "%SystemRoot%\system32\NtmsData\*
" (no quotation marks in the registry).
I think mldonkey should check for this key and add it if not present.
I'll add it by hand soon and see by myself how things change. |
|
| Back to top |
|
 |
spiralvoice Sage
Joined: 06 Jan 2003 Posts: 3982 Location: Germany
|
Posted: Sun Oct 15, 2006 10:37 am Post subject: Re: Problem with system restore and mldonkey config files |
|
|
| Camarade_Tux wrote: | | I think mldonkey should check for this key and add it if not present. |
I asked that some months ago already, but again, this is only possible if
there exists a Ocaml lib to access the windows registry. Without this would
be nearly impossible, but adding your infos to
http://mldonkey.sourceforge.net/WindowsSpecificAnnoyances
would definetely help other users. _________________ Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks |
|
| Back to top |
|
 |
Camarade_Tux skilled
Joined: 14 Nov 2003 Posts: 340 Location: Paris
|
|
| Back to top |
|
 |
Camarade_Tux skilled
Joined: 14 Nov 2003 Posts: 340 Location: Paris
|
Posted: Sun Oct 15, 2006 11:23 am Post subject: |
|
|
Thinking about that, I can make a small windowless app mldonkey could call in order to achieve some task only needed under windows.
It should be really quick for me to code.
And btw, I'll try to make an updated installer during my holidays.
(and maybe another one to compile mldonkey... ) |
|
| Back to top |
|
 |
pango Sage

Joined: 31 Oct 2002 Posts: 2436
|
Posted: Sun Oct 15, 2006 7:46 pm Post subject: |
|
|
Well, what can I say...
Thank you Microsoft for caring about mldonkey's state files
(Now I understand better why restore points do not always work as expected, and sometimes make things worse: they're built on a heap of weak heuristics... The days of hacks like long filenames tunneling aren't over!) |
|
| Back to top |
|
 |
Camarade_Tux skilled
Joined: 14 Nov 2003 Posts: 340 Location: Paris
|
Posted: Sun Oct 15, 2006 8:31 pm Post subject: |
|
|
| Quote: | | Now I understand better why restore points do not always work as expected |
You must be lucky, I've never seen any of them work correctly.
And some bad news : I've tried to add the registry setting by hand and it doesn't seem to have changed anything.
Maybe that it will only take effect with next restore point. Not to forget it, my latest RP here is 161, I won't see this computer again until next week-end but I doubt anything will have changed.
I'll probably ask MS directly.
At least, I've learned how to make a new sort of virus for windows : create and delete billions of 0-byte ini files.  |
|
| Back to top |
|
 |
Camarade_Tux skilled
Joined: 14 Nov 2003 Posts: 340 Location: Paris
|
Posted: Fri Nov 03, 2006 7:58 am Post subject: |
|
|
Had forgotten about that subject : I can confirm their registry key does not work.
Maybe that a virus modified the registry in order to prevent system files from being saved and that SP2 disabled this key!
How did they come with the idea of including the whole drive for restore ?
WinXP
PS: I never thought this forum could have so many smileys!  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © phpBB Group
|
|
|
|