RAM Drive for Windows 7 / Windows Server 2008 R2 (Страница 1) / ПО для Windows / Форум StopLinux

Объявление

Kwork.ru - услуги фрилансеров от 500 руб.

#1 25-10-10 21:02:25

Tiphon
Участник
Зарегистрирован: 08-07-10
Сообщений: 2,354

RAM Drive for Windows 7 / Windows Server 2008 R2

Зачем вообще нужен ram drive? Есть же суперфетч и т.д.?
Как пишет умная статья https://www.kudzuworld.com/Blogs/Tech/20100724A.ru.aspx

умная статья пишет:

SuperFetch

SuperFetch is a feature of Windows which caches executable code in spare memory so it is available when needed. Windows also uses available RAM for other types of disk cacheing. However it makes a best guess on what to cache, and is tuned towards average end users.

Developers

Developers can benefit from moving the following types of files to a RamDisk:

Copies of databases for use during development and testing.
Source Code - This speeds up compilation. Data loss? Get a UPS, and checkin frequently. Good practices anwyays.
Compilation output - EXE, DLL, PDB, etc.
Temporary files used by your application, and development environment.
I have moved several of my larger projects to use a RAM drive. I formerly had 4 GB of RAM and dedicated 1 GB to a RAM disk. 1 GB holds a lot of source code and output. You can also use backing images and change the RanDisk contents depending on the project you are working on at that moment. I've now upgraded to 8 GB, but still only dedicate 1 GB of RAM to my RamDisk, and find it is more than sufficient for my needs, even on large projects such as Cosmos. Cosmos even with outputs, ISOs, etc uses only 256 MB.

Since moving to a RamDisk, my builds have reduced in time by 10-20x in many cases.

Для создания рам диска рекомендуется ImDisk
https://www.ltr-data.se/opencode.html#ImDisk

Пример использования:

Startup Batch File

imdisk -d -m M:
imdisk -a -s 1G -m M: -p "/fs:NTFS /V:MemDisk /q /y"

mkdir m:\Temp

xcopy D:\MemDisk\*.* m:\*.* /E /K /H /R /Q
imdisk must be run as Administrator, so run the batch file as administrator. Batch files cannot be set to auto run as admin, but you can automate this by creating a shortcut to the batch file, and using the advanced button on the shortcut tab of the shortcut properties. Do not try to use the compatibility tab, run as admin will be disabled there.

Shutdown Batch File

del m:\temp\*.* /S /Q /F
rmdir m:\temp

REM Have to copy all, not just archived, else deleted files will reappear on boot
del D:\MemDisk\*.* /S /Q /F

xcopy m:\*.* D:\MemDisk\*.* /E /K /H /R /Q

imdisk -d -m M:

Более подробно тут:
https://www.kudzuworld.com/Blogs/Tech/20100724A.ru.aspx

З.Ы. Для людей далеких от мира  виндовс стоит заметить, что это - далеко не единственное решение для RamDrive.
З.Ы.Ы. Пост родился в ходе личной переписки про преимущества создания и работы с ramdrive под линукс и невозможности делать это под виндовс.


Квантовая механика - "малопонятный математический курьёз" (с) msAVA - современный учитель.

Неактивен

#2 25-10-10 22:21:13

ikkunan salvataja
Участник
Зарегистрирован: 30-01-10
Сообщений: 2,688

Re: RAM Drive for Windows 7 / Windows Server 2008 R2

MOP3E пишет:

Эмм... а можно хотя бы частично на русском?

А чего там непонятного? Проприетарный гений Майкрософт наконец таки изобрёл tmpfs.


Yesterday it worked.
Today it is not working.
Windows is like that.

Неактивен

#3 25-10-10 23:04:39

ikkunan salvataja
Участник
Зарегистрирован: 30-01-10
Сообщений: 2,688

Re: RAM Drive for Windows 7 / Windows Server 2008 R2

Бродяга пишет:

Это, если мне память не изменяет, еще под дос было.

Было, но если мне память не изменяет, не динамическое.


Yesterday it worked.
Today it is not working.
Windows is like that.

Неактивен

#4 25-10-10 23:19:27

ikkunan salvataja
Участник
Зарегистрирован: 30-01-10
Сообщений: 2,688

Re: RAM Drive for Windows 7 / Windows Server 2008 R2

Бродяга пишет:

но сдается мне, что tmpfs и SuperFetch несколько разные вещи.

Совершенно разные, аналогом SuperFetch в линуксе является демон preload, а tmpfs это просто динамический рамдиск. Очень удобно при сборке программ, когда у тебя куча мелких файликов постоянно создаётся и удаляется.


Yesterday it worked.
Today it is not working.
Windows is like that.

Неактивен

Kwork.ru - услуги фрилансеров от 500 руб.
Мой VPS с 2016 года !
✅ Виртуальные от 300 ₽/месяц, RAM 1-10GB, DISK 20-360 GB;
✅ Выделенные от 3000 ₽/месяц. RAM 4-64GB, DISK до 4TB;
✅ Intel Xeon, SSD, XEN, iLO/KVM, Windows/Linux, Администрирование;
✅ Бесплатно Full Backup и Anti-DDoS.





Подвал форума

Под управлением FluxBB
Модифицировал Visman

Яндекс.Метрика