search for: worker_id

Displaying 10 results from an estimated 10 matches for "worker_id".

2011 Feb 17
1
(no) new join table entry by collection_select
...ion_select to get the id of a worker from Worker-table. <%= collection_select(:worker, :id, @workers, :id, :first_name, options ={:prompt => "Select a worker"}, :class =>"worker") %></div> The collection select shows correct, but there will be no entry in the worker_id field of the new entry. If I use a text_field to pass the number it works: <%= f.label :worker_id %><br /> <%= f.text_field :worker_id %> Br rogi -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this...
2023 Mar 28
1
[PATCH v6 11/11] vhost: allow userspace to create workers
...er) +{ + refcount_inc(&worker->refcount); + vhost_vq_detach_worker(vq); + vq->worker = worker; +} + +/* Caller must have device and virtqueue mutex */ +static int vhost_vq_attach_worker(struct vhost_virtqueue *vq, + struct vhost_vring_worker *info) +{ + unsigned long index = info->worker_id; + struct vhost_dev *dev = vq->dev; + struct vhost_worker *worker; + + if (!dev->use_worker) + return -EINVAL; + + /* + * We don't support setting a worker on an active vq to make flushing + * and removal simple. + */ + if (vhost_vq_get_backend(vq)) + return -EBUSY; + + worker = xa_f...
2006 Feb 07
3
help with relationship
...'s imagine we are modelling a company that have several shops. I have a Worker model and a Shop model. A worker belongs_to a shop, and each shop has_many workers. But, in a shop there''s a distinguished worker that is the supervisor create table shops ( ... worker_id integer -- the supervisor ); How would you express this relationship?
2023 Apr 10
1
[PATCH v6 11/11] vhost: allow userspace to create workers
...> + > >> +/* Caller must have device and virtqueue mutex */ > >> +static int vhost_vq_attach_worker(struct vhost_virtqueue *vq, > >> + struct vhost_vring_worker *info) > >> +{ > >> + unsigned long index = info->worker_id; > >> + struct vhost_dev *dev = vq->dev; > >> + struct vhost_worker *worker; > >> + > >> + if (!dev->use_worker) > >> + return -EINVAL; > >> + > >> + /* > >> + * We don't s...
2023 Apr 13
1
[PATCH v6 11/11] vhost: allow userspace to create workers
...the single ioctl design so we can compare. > So I'm fine with this approach. One last question, I see this: > > /* By default, a device gets one vhost_worker that its virtqueues share. This */ > > I'm wondering if it is better to have a vhost_get_worker() to return > the worker_id of a specific queue. In the future, this might be useful > for devices that have multiple workers by default? Yeah, it would be useful. Just 2 questions. You mean an ioctl command to get this info right? I had added one in one version a while back, but dropped it because for some reason I thoug...
2023 Apr 14
1
[PATCH v6 11/11] vhost: allow userspace to create workers
...e can compare. > > So I'm fine with this approach. One last question, I see this: > > > > /* By default, a device gets one vhost_worker that its virtqueues share. This */ > > > > I'm wondering if it is better to have a vhost_get_worker() to return > > the worker_id of a specific queue. In the future, this might be useful > > for devices that have multiple workers by default? > > Yeah, it would be useful. Just 2 questions. You mean an ioctl command to get > this info right? I had added one in one version a while back, but dropped it > because...
2023 Apr 12
1
[PATCH v6 11/11] vhost: allow userspace to create workers
...n spin another patchset with the single ioctl design so we can compare. So I'm fine with this approach. One last question, I see this: /* By default, a device gets one vhost_worker that its virtqueues share. This */ I'm wondering if it is better to have a vhost_get_worker() to return the worker_id of a specific queue. In the future, this might be useful for devices that have multiple workers by default? Thanks >
2023 Mar 28
12
[PATCH v6 00/11] vhost: multiple worker support
...The patches in this patchset allow us to support multiple vhost workers per device. The design is a modified version of Stefan's original idea where userspace has the kernel create a worker and we pass back the pid. In this version instead of passing the pid between user/kernel space we use a worker_id which is just an integer managed by the vhost driver and we allow userspace to create and free workers and then attach them to virtqueues at setup time. All review comments from the past reviews should be handled. If I didn't reply to a review comment, I agreed with the comment and should have...
2005 Dec 28
2
How write input form (layout/controller) so I can enter Id
I reformulate my needs. How I can write (layout/controller) so I can read value of Id from the new form when creating new record. With following structure: CREATE TABLE words ( id INTEGER PRIMARY KEY, word VARCHAR(40) ); I want enter new records like: id=47812, word=''pes'' id=1382, word=''krough'' id=67145, word=''brum'' --
2023 Jul 06
0
njs-0.8.0
...- the file path to current error log file. ngx.prefix - the directory that keeps server files. ngx.version - the nginx version as a string, for example: "1.25.0". ngx.version_number - the nginx version as a number, for example: 1025000. ngx.worker_id - corresponds to an nginx internal worker id. The value is between 0 and worker_processes - 1. *) Feature: introduced js_shared_dict_zone directive. The directive allows to declare a dictionary that is shared among the working processes. *) Improvement: ad...