public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Implementing /bin/ionice,ioprio_set() support with FILE_IO_PRIORITY_HINT_INFO?
@ 2024-04-03  1:51 Martin Wege
  2024-04-03  8:39 ` Implementing /bin/ionice, ioprio_set() " Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Wege @ 2024-04-03  1:51 UTC (permalink / raw)
  To: cygwin

Hello,

could Cygwin implement support for /usr/bin/ionice and ioprio_set()
via FILE_IO_PRIORITY_HINT_INFO?

So basically implement ioprio_set() to store the value per process,
and for each file open() call this:

FILE_IO_PRIORITY_HINT_INFO priorityHint={0};
priorityHint.PriorityHint = ioniceprio2WinIoPriorityHint(ioniceprio);
result = SetFileInformationByHandle( hFile,
                                     FileIoPriorityHintInfo,
                                     &priorityHint,
                                     sizeof(PriorityHint));

NTFS and ReFS support FILE_IO_PRIORITY_HINT_INFO

Thanks,
Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Implementing /bin/ionice, ioprio_set() support with FILE_IO_PRIORITY_HINT_INFO?
  2024-04-03  1:51 Implementing /bin/ionice,ioprio_set() support with FILE_IO_PRIORITY_HINT_INFO? Martin Wege
@ 2024-04-03  8:39 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2024-04-03  8:39 UTC (permalink / raw)
  To: cygwin

On Apr  3 03:51, Martin Wege via Cygwin wrote:
> Hello,
> 
> could Cygwin implement support for /usr/bin/ionice and ioprio_set()
> via FILE_IO_PRIORITY_HINT_INFO?

Not ionice, the tool, but only ioprio_get/ioprio_set, the API.

The problem is the functionality bit allowing to set the priority
in arbitrary processes.

And, as usual, https://cygwin.com/acronyms/#SHTDI

I would again like to stress the fact that we're all volunteers here,
and we're a sadly small bunch of people actually contributing to the
core code.

It's easy to ask for new functionality, but it needs time to implement
stuff and we all have another job keeping the money coming, and that
job takes priority.

We don't want to see stuff like the xz debacle in Cygwin, right?


Corinna

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-03  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-03  1:51 Implementing /bin/ionice,ioprio_set() support with FILE_IO_PRIORITY_HINT_INFO? Martin Wege
2024-04-03  8:39 ` Implementing /bin/ionice, ioprio_set() " Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).