]> rtime.felk.cvut.cz Git - frescor/fwp.git/log
frescor/fwp.git
14 years agoImplemented synchronous and asynchronous sending
Michal Sojka [Fri, 6 Nov 2009 14:02:15 +0000 (15:02 +0100)]
Implemented synchronous and asynchronous sending

The main goal of this big change is to avoid delays caused by CPU
scheduler when rescheduling from application thread to VRES TX thread.
According to our fwp-timing.c experiment, these delays can by even
several milliseconds long.

Now, whenever VRES capacity allows, send operation is invoked directly
from application thread. Only if the budget is insufficient, the
message can be queued for sending later by VRES thread, provided that
asynchronous send was requested. In case of synchronous send, the
application thread is blocked until the budget is replenished.

Besides the above change, the code was cleaned up a lot.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
14 years agoRemoved FWP_VF_CHANGED flag
Michal Sojka [Thu, 5 Nov 2009 14:59:48 +0000 (15:59 +0100)]
Removed FWP_VF_CHANGED flag

This flag is not necessary and was really used only for printing
debugging messages, which can be done in a more simple way.

14 years agoRemoved "descriptor" types
Michal Sojka [Tue, 3 Nov 2009 11:52:01 +0000 (12:52 +0100)]
Removed "descriptor" types

These types (fwp_endpoint_d_t, fwp_vres_d_t). These types only made things
more complicated than it was necessary. Now all functions use the "real"
types for their parameters.

14 years agoRemove unused flags parameter of fwp_send()
Michal Sojka [Mon, 2 Nov 2009 15:03:01 +0000 (16:03 +0100)]
Remove unused flags parameter of fwp_send()

14 years agoRemoved unused id field from vres_params
Michal Sojka [Mon, 2 Nov 2009 09:57:56 +0000 (10:57 +0100)]
Removed unused id field from vres_params

14 years agoAdded application to measure FWP timing properites
Michal Sojka [Tue, 27 Oct 2009 15:28:09 +0000 (16:28 +0100)]
Added application to measure FWP timing properites

TODO: It is necessary to implement synchronous sending in FWP. Without
this it is possible that FWP vres slows down due to scheduling latencies
and we then measure constantly higher delays.

Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
14 years agoAdded missing initialization of ancillary data
Michal Sojka [Tue, 27 Oct 2009 15:23:10 +0000 (16:23 +0100)]
Added missing initialization of ancillary data

14 years agoAdded fwp block accessors
Michal Sojka [Tue, 27 Oct 2009 15:21:20 +0000 (16:21 +0100)]
Added fwp block accessors

14 years agoRework fwp_send() to obey src parameter
Michal Sojka [Mon, 26 Oct 2009 16:38:08 +0000 (17:38 +0100)]
Rework fwp_send() to obey src parameter

I had to replace send() by sendmsg() in order to specify control message
which is the only way to specify source interface.

14 years agoIntroduce src parameter in FWP contracts
Michal Sojka [Mon, 26 Oct 2009 16:23:31 +0000 (17:23 +0100)]
Introduce src parameter in FWP contracts

If set, this parameter will be used to force the packets to be sent through
a specific interface given by IPv4 address of the interface.

14 years agostruct fwp_endpoint_attr documentation changes
Michal Sojka [Mon, 26 Oct 2009 15:53:06 +0000 (16:53 +0100)]
struct fwp_endpoint_attr documentation changes

14 years agoUse endpoint attributes only if it has correct size
Michal Sojka [Mon, 26 Oct 2009 15:51:03 +0000 (16:51 +0100)]
Use endpoint attributes only if it has correct size

14 years agoUpdated to change in deadline miss notification
Michal Sojka [Mon, 19 Oct 2009 13:34:59 +0000 (15:34 +0200)]
Updated to change in deadline miss notification

14 years agoFix FWP manager Makefile changed in the last commit
Michal Sojka [Mon, 24 Aug 2009 13:36:37 +0000 (15:36 +0200)]
Fix FWP manager Makefile changed in the last commit

14 years agoFWP manager renamed to frm_fwp
Michal Sojka [Mon, 24 Aug 2009 09:24:50 +0000 (11:24 +0200)]
FWP manager renamed to frm_fwp

This is to match the naming convention used by all other managers.

14 years agowme_test: Send timing reworked
Michal Sojka [Thu, 13 Aug 2009 15:37:25 +0000 (17:37 +0200)]
wme_test: Send timing reworked

The new implementation allows delays > 1 second and skip packets when
the program is stopped for some time (suspend to *, or Ctrl-S when
there is some debugging output in TX path).

14 years agoFixed broken budgeting algorithm
Michal Sojka [Thu, 13 Aug 2009 15:29:34 +0000 (17:29 +0200)]
Fixed broken budgeting algorithm

The problems of the previous implementation were:

1) Messages were almost always delayed event if it was not necessary.
   The reason was that the budget was replenished only at the
   multiples of period since the VRES thread started. Even if no
   message was sent for several periods, the budget was not
   replenished immediately when a new message arrived, but the code
   wait for the next period.
2) It was possible to send more bytes then the VRES should allow. If
   the message was too large, the code just wait for the new replenish
   and then sent the message. At the next replenish instant, the
   budget was fully replenished again another oversized message could
   be sent again.

The new algorithm should solve all the above points.

14 years agoRESCHED flag renamed to CHANGED
Michal Sojka [Thu, 13 Aug 2009 15:29:13 +0000 (17:29 +0200)]
RESCHED flag renamed to CHANGED

This better represents the meaning of the flag.

14 years agoUse more descriptive error numbers
Michal Sojka [Thu, 13 Aug 2009 13:19:01 +0000 (15:19 +0200)]
Use more descriptive error numbers

14 years agoFix VRES flag values
Michal Sojka [Thu, 13 Aug 2009 13:10:09 +0000 (15:10 +0200)]
Fix VRES flag values

VRES flags are treated as bit numbers but was incorrectly defined as bit
masks.

14 years agowme_test: recv_packet_fwp returns correct value
Michal Sojka [Thu, 13 Aug 2009 11:36:27 +0000 (13:36 +0200)]
wme_test: recv_packet_fwp returns correct value

14 years agowme_test: Document -G switch
Michal Sojka [Thu, 13 Aug 2009 11:33:38 +0000 (13:33 +0200)]
wme_test: Document -G switch

14 years agowme_test: Added -l switch to select logging levels
Michal Sojka [Thu, 13 Aug 2009 11:31:49 +0000 (13:31 +0200)]
wme_test: Added -l switch to select logging levels

Works only when compiled with uLUt

14 years agoFix error reporting of fwp_fna functions
Michal Sojka [Thu, 13 Aug 2009 11:02:03 +0000 (13:02 +0200)]
Fix error reporting of fwp_fna functions

Return value of several functions was stored in a variable of unsigned
type size_t and later was checked to be less then zero, which was always
true. Now, we use signed type ssize_t for this cases.

14 years agoConvert debug messages to uLUt and fix #include dependencies
Michal Sojka [Thu, 13 Aug 2009 10:59:16 +0000 (12:59 +0200)]
Convert debug messages to uLUt and fix #include dependencies

14 years agowme_test: fixed termination under FRSH
Michal Sojka [Thu, 13 Aug 2009 09:02:25 +0000 (11:02 +0200)]
wme_test: fixed termination under FRSH

14 years agoRemove obsolete comment
Michal Sojka [Thu, 13 Aug 2009 09:01:17 +0000 (11:01 +0200)]
Remove obsolete comment

14 years agoAdded check for NULL arguments to avoid segfaults
Michal Sojka [Thu, 13 Aug 2009 09:01:00 +0000 (11:01 +0200)]
Added check for NULL arguments to avoid segfaults

14 years agoMake FWP not to eat EINTR error
Michal Sojka [Thu, 13 Aug 2009 08:57:06 +0000 (10:57 +0200)]
Make FWP not to eat EINTR error

Without returning EINTR, it is not possible to correctly terminate FRSH
applications such as wclient.

14 years agowme_test: Use send_async() which is implemented by FWP
Michal Sojka [Wed, 12 Aug 2009 16:26:54 +0000 (18:26 +0200)]
wme_test: Use send_async() which is implemented by FWP

14 years agowme_test: GUI may be enabled in both FRSH/non-FRSH version by -G switch
Michal Sojka [Wed, 12 Aug 2009 16:02:00 +0000 (18:02 +0200)]
wme_test: GUI may be enabled in both FRSH/non-FRSH version by -G switch

14 years agowme_test: Make it work with ncurses TUI
Michal Sojka [Wed, 12 Aug 2009 15:21:58 +0000 (17:21 +0200)]
wme_test: Make it work with ncurses TUI

There are still some problems with FRSH code

14 years agowme_test is compiled by default with FRSH
Michal Sojka [Tue, 11 Aug 2009 16:38:01 +0000 (18:38 +0200)]
wme_test is compiled by default with FRSH

14 years agoCatch missing contract parameters in allocator
Michal Sojka [Mon, 10 Aug 2009 16:17:06 +0000 (18:17 +0200)]
Catch missing contract parameters in allocator

14 years agoWhitespace fixes
Michal Sojka [Mon, 10 Aug 2009 16:15:41 +0000 (18:15 +0200)]
Whitespace fixes

14 years agoReject contracts with zero period and budget
Michal Sojka [Mon, 10 Aug 2009 14:46:58 +0000 (16:46 +0200)]
Reject contracts with zero period and budget

14 years agoMake wme_test compilable with FRSH and FWP
Michal Sojka [Thu, 6 Aug 2009 16:19:41 +0000 (18:19 +0200)]
Make wme_test compilable with FRSH and FWP

14 years agowme_test: Added missing \n in help message
Michal Sojka [Mon, 3 Aug 2009 16:38:59 +0000 (18:38 +0200)]
wme_test: Added missing \n in help message

14 years agowme_test: Get rid of type related warnings on 64 bit systems
Michal Sojka [Mon, 3 Aug 2009 16:26:19 +0000 (18:26 +0200)]
wme_test: Get rid of type related warnings on 64 bit systems

14 years agowme_test: Make the message format independent of 32/64 bit architecture
Michal Sojka [Mon, 3 Aug 2009 09:30:06 +0000 (11:30 +0200)]
wme_test: Make the message format independent of 32/64 bit architecture

When wclient and wserver were run on different architectures
(32/64-bit), the message format was different on each machine and the
results were wrong.

14 years agowme_test: update status every second when compiled without FWP
Michal Sojka [Mon, 3 Aug 2009 09:31:11 +0000 (11:31 +0200)]
wme_test: update status every second when compiled without FWP

Statistics displays number of messages per second, so when they are
displayed faster, the numbers are not correct.

14 years agowme_test: Do not print EINTR errors
Michal Sojka [Mon, 3 Aug 2009 09:30:39 +0000 (11:30 +0200)]
wme_test: Do not print EINTR errors

14 years agowme_test: Added missing declaration when compiled without FWP
Michal Sojka [Fri, 24 Jul 2009 16:06:29 +0000 (18:06 +0200)]
wme_test: Added missing declaration when compiled without FWP

14 years agoSupressed a warning
Michal Sojka [Thu, 28 May 2009 03:52:33 +0000 (05:52 +0200)]
Supressed a warning

14 years agoFix fra warning
Michal Sojka [Wed, 27 May 2009 22:23:52 +0000 (00:23 +0200)]
Fix fra warning

<2>fra: change_vres callback did not change the perceived vres!

14 years agoMerge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp
Martin Molnar [Wed, 27 May 2009 21:56:09 +0000 (23:56 +0200)]
Merge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp

Conflicts:

fwp/lib/frsh_fwp/fwp_fra.c

14 years agoUpdated logging in allocator
Michal Sojka [Wed, 27 May 2009 14:13:24 +0000 (16:13 +0200)]
Updated logging in allocator

14 years agoBetter logging in admission test
Michal Sojka [Wed, 27 May 2009 13:59:42 +0000 (15:59 +0200)]
Better logging in admission test

14 years agoMerge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp
Martin Molnar [Wed, 27 May 2009 11:26:14 +0000 (13:26 +0200)]
Merge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp

14 years agoAdd support for changing fwp vres
Martin Molnar [Wed, 27 May 2009 11:24:44 +0000 (13:24 +0200)]
Add support for changing fwp vres
Signed-off-by: Martin <molnam1@fel.cvut.cz>
14 years agoAdmission test updated to support cancelation
Michal Sojka [Wed, 27 May 2009 11:00:57 +0000 (13:00 +0200)]
Admission test updated to support cancelation

14 years agoThe logging updated to allow full loglevels control.
Pavel Pisa [Tue, 26 May 2009 04:09:03 +0000 (06:09 +0200)]
The logging updated to allow full loglevels control.

uLUt update to actual version is required.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
14 years agofwp_endpoint_create returns socket descriptor
Martin Molnar [Mon, 25 May 2009 10:21:25 +0000 (12:21 +0200)]
fwp_endpoint_create returns socket descriptor
if successfull otherwise negative value.

Signed-off-by: Martin <molnam1@fel.cvut.cz>
14 years agoMerge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp
Martin Molnar [Sun, 24 May 2009 20:17:04 +0000 (22:17 +0200)]
Merge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp

14 years agoChange number of message in queue from 32 to 2048.
Martin Molnar [Sun, 24 May 2009 20:16:52 +0000 (22:16 +0200)]
Change number of message in queue from 32 to 2048.

The previous value caused that streamer has frozen
after while.
Signed-off-by: Martin <molnam1@fel.cvut.cz>
15 years agoAdd a name displayed by frm_gui to the manager
Michal Sojka [Wed, 20 May 2009 23:09:56 +0000 (01:09 +0200)]
Add a name displayed by frm_gui to the manager

15 years agoUpdated forb initialization in manager
Michal Sojka [Sun, 17 May 2009 05:27:21 +0000 (07:27 +0200)]
Updated forb initialization in manager

15 years agoRemoved extraordinary use of inline keyword in functions declarations.
Pavel Pisa [Thu, 14 May 2009 00:19:34 +0000 (02:19 +0200)]
Removed extraordinary use of inline keyword in functions declarations.

The use of inline for functions implemented in C source
file and included in library breaks C99/GNU99 build with
FFMpeg library.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
15 years agomanager: replaced fres_sa_scenario_for_each_contract to skip contracts to be canceled
Michal Sojka [Thu, 23 Apr 2009 11:13:23 +0000 (13:13 +0200)]
manager: replaced fres_sa_scenario_for_each_contract to skip contracts to be canceled

15 years agoBitrate increased to 54 Mbps, lowered mimimum deadline.
Michal Sojka [Wed, 11 Feb 2009 08:15:02 +0000 (09:15 +0100)]
Bitrate increased to 54 Mbps, lowered mimimum deadline.

15 years agoBitrate increased to 22 Mbps, added utilization export for GUI
Michal Sojka [Wed, 11 Feb 2009 07:57:41 +0000 (08:57 +0100)]
Bitrate increased to 22 Mbps, added utilization export for GUI

15 years agofwp_vres: budget is now full by default.
Martin Molnar [Mon, 15 Dec 2008 21:16:50 +0000 (22:16 +0100)]
fwp_vres: budget is now full by default.

15 years agoBug fix in vres tx thread. Fixed budgeting.
Martin Molnar [Sun, 14 Dec 2008 15:04:11 +0000 (16:04 +0100)]
Bug fix in vres tx thread. Fixed budgeting.

15 years agoUpdated to the changed prototype of fra_register()
Michal Sojka [Fri, 12 Dec 2008 16:39:09 +0000 (17:39 +0100)]
Updated to the changed prototype of fra_register()

15 years agoFixed budget conversion in FRA
Michal Sojka [Wed, 10 Dec 2008 10:37:54 +0000 (11:37 +0100)]
Fixed budget conversion in FRA

15 years agofwpmngr displays budgets in bytes
Michal Sojka [Wed, 10 Dec 2008 09:33:50 +0000 (10:33 +0100)]
fwpmngr displays budgets in bytes

15 years agoCommented out error output message when set_setscheduler call fails
Martin [Fri, 28 Nov 2008 13:07:55 +0000 (14:07 +0100)]
Commented out error output message when set_setscheduler call fails

15 years agoUndo previous fix
Martin Molnar [Mon, 24 Nov 2008 22:14:55 +0000 (23:14 +0100)]
Undo previous fix

15 years agoFIx: fwp_fna_receive_endpoint_created -returning receive port
Martin Molnar [Mon, 24 Nov 2008 20:46:47 +0000 (21:46 +0100)]
FIx: fwp_fna_receive_endpoint_created -returning receive port

15 years agoFix: function fwp_recv returns address of sender in from prarameter
Martin [Wed, 19 Nov 2008 17:15:17 +0000 (18:15 +0100)]
Fix: function fwp_recv returns address of sender in from prarameter

15 years agoMerge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp
Martin [Wed, 19 Nov 2008 14:21:33 +0000 (15:21 +0100)]
Merge branch 'master' of molnam1@rtime.felk.cvut.cz:/var/git/frescor/fwp

15 years agoFix:In fwp_receive_endpoint_create the assignment of port number(assigned by system...
Martin [Wed, 19 Nov 2008 14:21:02 +0000 (15:21 +0100)]
Fix:In fwp_receive_endpoint_create the assignment of port number(assigned by system) to endpoint.port  was missing

15 years agoRemoved undesired, tracked file in doc directory
Martin Molnar [Tue, 18 Nov 2008 22:07:31 +0000 (23:07 +0100)]
Removed undesired, tracked file in doc directory

15 years agoAdded lincence to mngr files
Martin [Tue, 18 Nov 2008 13:49:51 +0000 (14:49 +0100)]
Added lincence to mngr files

15 years agoAdded licence at the begining of file.
Martin [Tue, 18 Nov 2008 13:44:18 +0000 (14:44 +0100)]
Added licence at the begining of file.

15 years agoFWP clean-up. CONFIG_WITH_CONTNEGT changed to CONFIG_WITHOUT_CONNEGT.
Martin [Fri, 14 Nov 2008 18:31:04 +0000 (19:31 +0100)]
FWP clean-up. CONFIG_WITH_CONTNEGT changed to CONFIG_WITHOUT_CONNEGT.

15 years agoUpdated to rename of resource scheduler to allocator
Michal Sojka [Thu, 13 Nov 2008 13:56:04 +0000 (14:56 +0100)]
Updated to rename of resource scheduler to allocator

15 years agoUpdate of manager and scheduler to the changes in frsh_forb
Michal Sojka [Thu, 6 Nov 2008 15:21:26 +0000 (16:21 +0100)]
Update of manager and scheduler to the changes in frsh_forb

15 years agoFWP compilation can be disabled in config.omk
Michal Sojka [Thu, 6 Nov 2008 15:20:48 +0000 (16:20 +0100)]
FWP compilation can be disabled in config.omk

15 years agoSmall change of constatnts in fwp_vrestest2
Martin [Wed, 5 Nov 2008 11:45:07 +0000 (12:45 +0100)]
Small change of constatnts in fwp_vrestest2

15 years agomerge martin-devel
Martin [Mon, 3 Nov 2008 17:50:59 +0000 (18:50 +0100)]
merge martin-devel

15 years agoModified FWP utilization-based admission test and integrated to FORB
Martin [Mon, 3 Nov 2008 17:24:56 +0000 (18:24 +0100)]
Modified FWP utilization-based admission test and integrated to FORB

15 years agoAdded utilization based admission test - needed to be modified.
Martin [Sun, 2 Nov 2008 18:36:34 +0000 (19:36 +0100)]
Added utilization based admission test - needed to be modified.

15 years agoAdmission test adapted to API change
Michal Sojka [Sat, 1 Nov 2008 17:01:04 +0000 (18:01 +0100)]
Admission test adapted to API change

See 449b84745661858c77bbab101f7f1ec26b4d97ad commit in frsh_forb

15 years agoRename lib/core to lib/fwp. Clean-ups
Martin [Fri, 31 Oct 2008 16:27:31 +0000 (17:27 +0100)]
Rename lib/core to lib/fwp. Clean-ups

15 years agoAdded support for contract negotiation
Martin [Fri, 31 Oct 2008 14:07:14 +0000 (15:07 +0100)]
Added support for contract negotiation

15 years agoSmall fixes to get frsh distributed test working again.
Martin [Wed, 29 Oct 2008 15:15:21 +0000 (16:15 +0100)]
Small fixes to get frsh distributed test working again.

15 years agoWhen receive endpoint is created with port=0, the routine assigns real port. Modified...
Martin [Wed, 29 Oct 2008 10:15:49 +0000 (11:15 +0100)]
When receive endpoint is created with port=0, the routine assigns real port. Modified DUMMY manager for the purpose of FWP manager

15 years agoCompilation fixes
Martin [Tue, 28 Oct 2008 16:23:04 +0000 (17:23 +0100)]
Compilation fixes

15 years agoAdded resmngr and resched from dummy exapmle
Martin [Fri, 24 Oct 2008 15:14:08 +0000 (17:14 +0200)]
Added resmngr and resched from dummy exapmle

15 years agofwp_util.(h,c) changed to fwp_utils
Martin Molnar [Sun, 26 Oct 2008 13:04:13 +0000 (14:04 +0100)]
fwp_util.(h,c) changed to fwp_utils

15 years agoAdding more comments to fwp_endpoint
Martin Molnar [Sun, 26 Oct 2008 00:02:48 +0000 (02:02 +0200)]
Adding more comments to fwp_endpoint

15 years agoResolving conflicts in fwp/Makefile.omk
Martin [Fri, 24 Oct 2008 09:11:40 +0000 (11:11 +0200)]
Resolving conflicts in fwp/Makefile.omk

15 years agoRemoved ulut from Makefile.omk. fna_send_endpoint_unbind made empty until frsh_vres_i...
Martin [Fri, 24 Oct 2008 09:02:14 +0000 (11:02 +0200)]
Removed ulut from Makefile.omk. fna_send_endpoint_unbind made empty until frsh_vres_id handling is complete

15 years agoIntegration of makesystem with the rest of FRESCOR
Michal Sojka [Fri, 24 Oct 2008 08:15:42 +0000 (10:15 +0200)]
Integration of makesystem with the rest of FRESCOR

15 years agoAdded option FWP_CONTNEGT. If not defined, fwp can be tested without contract negotia...
Martin [Wed, 22 Oct 2008 14:26:14 +0000 (16:26 +0200)]
Added option FWP_CONTNEGT. If not defined, fwp can be tested without contract negotiation. So in the send endpoint call , the vres with default parameters is created.

15 years agoClean-ups. Removed directories: frsh, frsh-aquosa, ulut
Martin [Wed, 22 Oct 2008 07:47:30 +0000 (09:47 +0200)]
Clean-ups. Removed directories: frsh, frsh-aquosa, ulut

15 years agoFixed another bug. tcp data transfer is working
Martin [Tue, 21 Oct 2008 17:31:04 +0000 (19:31 +0200)]
Fixed another bug. tcp data transfer is working

15 years agoFixing bugs related to tcp tranfer. Still not working
Martin [Tue, 21 Oct 2008 17:11:06 +0000 (19:11 +0200)]
Fixing bugs related to tcp tranfer. Still not working

15 years agoAdded fwp_fna.h
Martin [Mon, 20 Oct 2008 15:28:27 +0000 (17:28 +0200)]
Added fwp_fna.h