topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 25, 2025, 7:08 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 313 314 315 316 317 [318] 319 320 321 322 323 ... 364next
7926
General Software Discussion / Re: NOD32 Technical Support - Interesting response
« Last post by f0dder on December 03, 2006, 12:28 PM »
I dunno about their claim that "it doesn't really achieve anything"...

I don't really know how they implement the stuff, but a filter driver could detect an incoming buffer overflow (or other exploit) attempt before it activates. Keep in mind that you don't necessarily need to write anything to disk - there's been at least a couple of worms that only ever lived in memory.
7927
General Software Discussion / Re: NOD32 Technical Support - Interesting response
« Last post by f0dder on December 03, 2006, 11:15 AM »
Hummm...

what they're basically saying is that they can't write a stable socket filter driver?
7928
General Software Discussion / Re: NTFS encryption security on portable drives
« Last post by f0dder on December 03, 2006, 11:14 AM »
After thinking this through a bit...

Windows stores the EFS encryption key, encrypted, in the registry... for domain logons, I assume it's stored on the domain controller. For non-domain machines, you'll probably need to make sure that all machines have the right credentials, and perhaps SIDs as well. Bummer :)
7929
General Software Discussion / Re: Privacy solution for external USB drive?
« Last post by f0dder on December 03, 2006, 11:11 AM »
Elena: if you only need text files, check out fSekrit - doesn't need admin rights, and doesn't write temporary files with your secret stuff in plaintext.

Sorry for the shameless self promotion :)
7930
Living Room / Re: Building a Quiet PC
« Last post by f0dder on November 30, 2006, 06:09 AM »
My CPU usually idles around 35C, under max load goes to 55C. The GPU varies between 50-65C depending on load (though 60+ seems to happen very rarely, even when stressing the system with 3dmark). Motherboard temperature seems relatively constant around 40C.

Not having clearance for GPU airflow is a bad thing...

Seems ridiculous that you need so many fans :-s. I've got a front intake 120mm fan, and a rear exhaust, and that's it. Stock AMD cooler, too.
7931
Living Room / Re: Building a Quiet PC
« Last post by f0dder on November 30, 2006, 04:45 AM »
there's a small piece of hardware available that reduces the fanspeed based on the temperature of the passing airflow
not a good idea, since I've got a passively cooled GPU - I need the airflow :)
7932
Living Room / Re: Building a Quiet PC
« Last post by f0dder on November 30, 2006, 03:31 AM »
A bit sad that they didn't get bitter end results than they did...

I think the noisiest part of my case are the two 120mm casefans - but that's a steady, low-pitch hum, so it doesn't annoy me. The harddrive-rotation-induced resonance is the most annoying part, since it's a "cyclic" sound.

I have a passively cooled chipset by the way, and yesterday I swapped my trusty old GeForce6600 for a passively cooled gigabyte GeForce7600-GT - so none of those annoying small high-pitch fans :)
7933
Living Room / Re: Demise of the trackball? What's the alternative?
« Last post by f0dder on November 29, 2006, 03:06 AM »
They're becoming scarce in Denmark as well :(

Never really got used to them myself, but since I don't play games very often anymore, I've been considering trying out trackballs, to avoid wrist injury... only to find out they're all but gone.
7934
General Software Discussion / Re: What is the longest filename possible in Nero?
« Last post by f0dder on November 28, 2006, 05:16 PM »
With some quick tests (XP SP2 / NTFS), I wasn't able to create a folder with more than 244 chars in it's name (xPlorer^2 as well as cmd.exe) - might be a different story if you use the APIs directly, and use the unicode version... and perhaps you even have to do the "\\?\" prefix trick.

Also, inside the 244-char folder, I wasn't able to create a new folder, and the longest filename I was able to create was 11 bytes... that'd be 244 + 11 + 4 +1 bytes total (4 bytes for "C:\" and the "\" between path and filename, and 1 byte for the 0-trailer). Guess what that adds up to? :)

Notepad++ isn't able to open that file, by the way, heh.
7935
Congrats, tinjaw!

Now send over the second copy of vs.net to me ;P
7936
Living Room / Re: Using GPU:s to accelerate computations
« Last post by f0dder on November 27, 2006, 05:00 PM »
The 8800 is a pretty damn beefy GPU! But just how fast is it, compared to how much it costs and how much power it drains? (Remember the big version has power input from the PCI-e slot as well as TWO 6pin PCI-e power connectors!). Compare that to the core2duo processors... the interesting thing is, however, that the GPU has a different instruction set, and can do some operations insanely fast.

I wonder if the different floating-point formats could impose precision problems, though? Nvidia have been known for slacking a bit on image quality for speed purposes, hope that's not something so general it affects the FP quality.
7937
A big thanks to mouser for coining up :D the idea of the site.

A big thanks to Jibz for nudging me into checking it out.

And a big thanks to the rest of you for keeping the gears spinning!

 :-*
7938
Post New Requests Here / Re: IDEA: TV tuner software
« Last post by f0dder on November 23, 2006, 08:37 AM »
It's been a while since I've seend disks with less than 8MB cache, and 16MB seems to be becoming the standard for the larger disks...

So, even with 64kb clusters, you can have 8192/(64*5) = ~26 simultaneous files open, if using your calculations. Of course having 25-26 simulatenous file streams, even with purely defragmented files, is going to be horrible performance :)

7939
General Software Discussion / Re: Windows memory-paging behavior
« Last post by f0dder on November 21, 2006, 09:42 AM »
nontroppo: nice link, and nice to see that somebody finally got it pretty much right :)
7940
General Software Discussion / Re: Windows memory-paging behavior
« Last post by f0dder on November 20, 2006, 06:56 PM »
"Windows works in mysterious ways" ;)

Seriously, though, by default windows will even page out parts of it's kernel (those that aren't, surprise surprise, nonpageable). This might've been a good idea back in the days of very little ram, but I've found that this imposes a speed hit when running very greedy programs (especially games). Back when I had a paging file, I found that my system took fairly shorter to "recover" after running a game, if I enabled the DisablePagingExecutive setting - YMMV, though.

Personally I've disabled the paging file entirely (only possible in XP, if you do it in win2k a temporary small pagefile will be created on system boot, along with a warning dialog box). I've got 2 gigs of ram now and haven't run into trouble, with 1gig of ram most things worked, but the game "painkiller" would crash on a few levels.

Whether you'll be able to run without a paging file depends on the apps you use, and it must be added that some apps behave very badly if they run out of RAM. Generally, my system feels a bit smoother when not having a paging file - it does seem like NT by default is a bit too happy about trimming the working-set and utilizing the pagefile.

It's been some years since I used paging file last, and I can't really remember the specific situation you're talking about. I was generally annoyed that it seemd to be used when it wasn't necessary, though.
7941
Living Room / Re: Does anyone here dial their telephone using their computer modem?
« Last post by f0dder on November 20, 2006, 05:55 PM »
Almost 10 years ago, I found some pascal source code for generating dial tones - I hacked up some user interface for it, and could then hold my phone against my speaker, select a person from the list, and have it dial for me. Used it for a month or so, I guess.

These days I don't even have a landline phone, only a cell.
7942
Post New Requests Here / Re: IDEA: TV tuner software
« Last post by f0dder on November 20, 2006, 05:50 PM »
Thanks.  I'm assuming these calls will work for sequential access files (as well as random block access).
-superticker
That sounds like BASIC file modes rather than something done at the OS level :)

So the problem is with the programmer's implementation of ATI's MMC video recording software, not the design of Windows.  Interesting.  Maybe I need to look at getting new video recording software rather than changing my disk hardware configuration.
Well, you can't always know beforehand how large the file needs to be. But you can reserve some minimum size, and then make sure you write largeish buffers. Dunno if there's some additional ways to say "hey, I'm gonna write a lot"...

If you have a partition that's mostly used for large files, you can reduce fragmentation by increasing the cluster size. If you almost solely use it for video editing purposes, you might want to try going as high as 64kb cluster size. This of course requires reformatting (or perhaps using one of those partition managers)

Looking at ntfs.sys, it seems like the "ContigFileAllocSize" option isn't used - but it might still be worth a try, if you don't feel like reformatting. Catch is that, if it works, it'll affect all partitions and not just your video partition, and it could increase fragmentation for partitions with smaller files. Googling for it, as always, gives a lot of "yes it works", "no it doesn't work", "omfg you're a fool" kind of posts - so better experiment yourself (remember, you need a reboot after setting the value).

It seems that NT is still a bit conservative in some areas - like wanting to find a good fit for small writes, rather than trying to keep each file contiguous.
7943
Post New Requests Here / Re: IDEA: TV tuner software
« Last post by f0dder on November 19, 2006, 04:22 PM »
Doesn't the Win32 API support disk block preallocations?

SetFilePointer() to the expected output file size, SetEndOfFile(), and SetFilePointer() back to offset 0. Presto, instant action on NTFS, and as few fragments as possible. On FAT partitions, the operation takes a while though.
7944
Haven't played any recent-recent games, but the fairly recent games that I've played which meant most, must be...

Half-Life 2 + Episode 1. 'nuff said.
Thief 3: Deadly Shadows. First person sneaker, lockpicking, pickpocketing & blackjacking :D, inside missions, outside missions, immensive plot, wonderful graphics, ... has it all!
528587_20040212_screen002.jpg
World Of Warcraft. It's fairly stupid "kill everything that moves" and a lot of repetitive stuff, but there's something about the graphics and interaction that's nice. Not playing it anymore, though. Too scary seeing friends getting really addicted.
7945
Living Room / Re: Free license for SEAU (creates nice installers)
« Last post by f0dder on November 14, 2006, 09:12 AM »
Hm, that GUI is pretty ugly - I wonder how they can charge $49 for it when there's http://nsis.sourceforge.net . (An install builder creating nsis scripts might be pretty interesting, btw).
7946
Living Room / Re: The 25 Most Important Questions in the History of the Universe
« Last post by f0dder on November 14, 2006, 09:07 AM »
Can came before the can opener, and the poor canned-food eaters had to use knives to open the cans. Yup :)
7948
Developer's Corner / Re: Real-time OS drivers and their scheduling
« Last post by f0dder on November 12, 2006, 11:40 AM »
That brings up a new topic.  Is it possible to have more than 4GBytes of memory in Windows and still use the 32-bit version of the OS?  For example, could you mapped one 4GB (32-bit) block for just the kernel (not that you would really need/want to) and the other 4 GB block for the user mode so that you have a 8GB machine running 32-bit Windows?  I realize this design may not be ideal, but is it possible?  (Go ahead and move this new topic to another thread if the answer requires some discussion.  Maybe it won't.)
You can have more than 4GB yup, but iirc you need one of the server versions of windows to use it. Also, traditionally each application will only be able to use around 2 gigs of address space (or 3 gigs with that boot.ini switch) - although some "Address Window Extensions" have been added so you can map "windows" to physical RAM.

More than 4GB ram support was added already with the Pentrium Pro yeeeaaars ago, by the way :)

I'm trying to decide as long as these page tables stay in L1 cache, if this is an acceptable solution?  My initial thinking is that if you had dedicated mapping registers (without any memory contingencies between processor, address decoder, and address mapper), you could have more parallel operations (instruction fetching & effective address compution).  But, in truth, some pipelining and segmenting of the L1 cache could be used to avoid this potential conflict.
Well, it obviously works :). There's something called TLB - Translate Lookaside Buffers. Basically some extra caching for page table entries. TLB flushes/misses are relatively expensive.

I guess I favor the dedicated register design for the MMU.  It's cleaner and you don't have to worry about several subunits fighting over the same L1 cache for their parallel activities.  You could set aside (segment) part of the L1 cache for address mapping info, but then you would have a messy form of the dedicated MMU register design.
A bit cleaner and perhaps more efficient, but less flexible. MMU registers sound good for embedded devices, but IMHO isn't that great an idea for a generic operating system such as NT. Especially not if you take Terminal Services into account ;)
7949
Developer's Corner / Re: Real-time OS drivers and their scheduling
« Last post by f0dder on November 12, 2006, 09:32 AM »
Okay, I've browsed a bit through "Inside Windows 2000" and tried to summarize just a little part of Thread Scheduling from Chapter 6.

A thread runs for an amount of time called a "Quantum". A thread will always be interrupted at the end of it's Quantum, and NT will then check if there's a higher-priority thread that needs to be scheduled, or if the current thread's priority needs to be reduced (there's some dynamic priority levels in NT).

A thread isn't guaranteed to run for it's entire quantum, though - it can even be pre-empted before it's quantum starts. This is because higher-priority threads are always given preferance.

NT schedules strictly at thread granularity, no consideration is given to what process the thread belongs to. - so yes, an app with 10 threads could "starve" an app with 2 threads. So you need to do responsible design; don't have a bunch of CPU-intensive threads on a single-CPU system. Having multiple threads isn't a problem as long as most of the threads are blocking for events, though, since those won't even be considered for scheduling.

In most OSes, everything in "kernel mode" (which includes the drivers and the kernel/monitor) are mapped together such that execution can move from one place to another without the overhead a protection switch.  (Yes, that means a bad driver can crash the kernel.)  Does Windows work the same way?
Yup, everything kernel-mode is basically lumped together in the high part of the address space (upper 2GB, unless a boot.ini switch is added to make the split 3GB for usermode and 1GB for kernelmode). So the kernel part, afaik, stays mapped in every process.

Well, you run out of MMU register pairs for each separately protected module that must be constantly mapped into memory.  How many MMU mapping registers does the Pentium processor have?
x86 doesn't work that way :)

You have a register (CR3) that points to a page table (physical memory address). Each process has it's own CR3 value. The page table is a multi-level hierarchy that maps linear->physical addresses, including some additional info like access rights (since pages are 4k and must start at 4k boundaries, there's 12 bits for per-page stuff). There's also some extensions that allow for 2MB and 4MB pages, but 4kb is by far the most common and useful granularity.

That was a very rough breakdown :)

NT doesn't do "swapping", it does "paging" - ie., it swaps individual pages in and out, instead of full processes.
7950
I just had a very nasty experience the other day. I was working on a minor bugfix for Notepad++ and wanted to track down some file activity. Started the new process monitor, added some filter, started notepad++ in debug mode in vs.net2005... and *b00m*, my system locked up. I could still move windows around and a few of them still repainted, but couldn't launch new processes, couldn't terminate anything, etc. System wouldn't even shut down, so I ended up having to do a hardboot :(
Pages: prev1 ... 313 314 315 316 317 [318] 319 320 321 322 323 ... 364next